Results 1 to 6 of 6

Thread: Taskbar height

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Christchurch, New Zealand
    Posts
    12
    Hi is there a way to calculate the task bar height in twips or pixels?

    Thanks

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    ha ha, you could do, not sure...

    ...make a form maximize, and then get the height of it, then get the height of the screen and take from the other...easy!
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Code:
    'In a module declaration
    Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
    Declare Function GetWindowRect Lib "user32" Alias "GetWindowRect" (ByVal hwnd As Long, lpRect As RECT) As Long
    Type RECT
            Left As Long
            Top As Long
            Right As Long
            Bottom As Long
    End Type
    
    'In a module
    Property Get StartmenuHeight&():Dim rrect as rect
        GetWindowRect (FindWindow("Shell_TrayWnd", ""),rrect)
        StartmenuHeight=rrect.bottom-rrect.top
    End Property
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Wow Mag-net you're really cleaver!
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  5. #5
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    thanks kedaman, i know i am great!


    It would work
    Mag-Net's Home
    Visual Studio 6-Enterprise - SP4
    ICQ: 35519773
    Have Fun

  6. #6

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Christchurch, New Zealand
    Posts
    12

    Thanks Kedaman



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width