View Poll Results: Read my message first...
- Voters
- 5. You may not vote on this poll
-
54x22 pixels
-
Other (please reply)
-
May 30th, 2001, 02:04 AM
#1
Thread Starter
Fanatic Member
What size is yours? :)
Hehe, just had to do the subject thing 
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 , but anyways, you would make me a very happy man if you follow my instructions...
Thanks!
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
May 30th, 2001, 04:36 AM
#2
-
May 30th, 2001, 04:53 AM
#3
Thread Starter
Fanatic Member

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...
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
-
May 30th, 2001, 04:54 AM
#4
PowerPoster
Me neither 
Using nGUI 2.1 Developer's edition (running on Win98 / WinME)
-
May 30th, 2001, 05:19 AM
#5
Frenzied Member
62x22
My start button's caption is different, if it didn't have a different size it wouldn't fit
-
May 30th, 2001, 01:50 PM
#6
Fanatic Member
mines 55x22
win 2k
1600x1200
-
May 31st, 2001, 03:55 AM
#7
Frenzied Member
Hey, just curious: why do you wanna know the size of our start button?
-
May 31st, 2001, 04:08 AM
#8
Thread Starter
Fanatic Member
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)
Teaudirenopossum.Musasapientumfixaestinaure.
(I can't hear you. There's a banana in my ear)
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
|