-
What size is yours? :)
Hehe, just had to do the subject thing :D
What I actually ment was, what size is your start button?
I would like to know if there are any differences in size, or that I can assume the size is *generally* the same.
To find out, put the code below into a form and run it:
Code:
Private Declare Function FindWindowEx Lib "user32" _
Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, _
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, _
lpRect As RECT) As Long
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Sub Form_Load()
Dim rButton As RECT
Dim tWnd As Long
Dim bWnd As Long
' Get TaskBar Wnd
tWnd = FindWindow("Shell_TrayWnd", vbNullString)
' Get Start button Wnd
bWnd = FindWindowEx(tWnd, ByVal 0&, "BUTTON", vbNullString)
' Get Start button Rectangle
GetWindowRect bWnd, rButton
' Show it!
MsgBox "Width: " & _
CStr(rButton.Right - rButton.Left) & vbCrLf & _
"Height: " & _
CStr(rButton.Bottom - rButton.Top), _
vbOKOnly + vbInformation, "Thank you!"
' Ok, we can stop now...
Unload Me
End Sub
I'll post a poll so you don't have to post a message if it's the same dimensions as mine. If you do select 'other', please do leave a message with it's dimensions...
I know this may sound a little strange :rolleyes:, but anyways, you would make me a very happy man if you follow my instructions...
Thanks!
-
I don't have a start button!:D
Using Litestep (www.litestep.net)
Different language Windows versions might have a different size start button though.
-
:rolleyes:
I meant Win95, 98, ME, NT and 2K...
Tested it now on 95, 98 and XP (Classic look), all the same size. Resolutions varied from 640x480 to 1024x768....
But keep on voting, since I want to know for sure that that's the default size...
-
Me neither :)
Using nGUI 2.1 Developer's edition (running on Win98 / WinME)
-
62x22
My start button's caption is different, if it didn't have a different size it wouldn't fit :D
-
mines 55x22
win 2k
1600x1200
-
Hey, just curious: why do you wanna know the size of our start button? :)
-
Well, I once made a program called Start Button Skinner, but basically, it sucked. So I had a new idea on how to do it, and wanted to know if there's any general size so I can include a general graphic. Right now, I don't know if I'm going to make a new version.... I think I'm going to create a totally new shell instead :)
Oh, one more thing:
WindowBlinds: AAARGH!!! (in short: my P133 hates it!)
LiteStep: tried it, but removed it... (I liked explorer more)
nGUI: Where? What? How? Is it free? (in short: where can I get it)