|
-
Jun 8th, 2000, 04:21 AM
#1
Thread Starter
New Member
Hi is there a way to calculate the task bar height in twips or pixels?
Thanks
-
Jun 8th, 2000, 04:40 AM
#2
Lively Member
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 
-
Jun 8th, 2000, 04:43 AM
#3
transcendental analytic
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.
-
Jun 8th, 2000, 04:44 AM
#4
transcendental analytic
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.
-
Jun 8th, 2000, 04:49 AM
#5
Lively Member
thanks kedaman, i know i am great!
It would work
Mag-Net's Home
Visual Studio 6-Enterprise - SP4
ICQ: 35519773
Have Fun 
-
Jun 8th, 2000, 06:06 AM
#6
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|