View Poll Results: Read my message first...

Voters
5. You may not vote on this poll
  • 54x22 pixels

    3 60.00%
  • Other (please reply)

    2 40.00%
Results 1 to 8 of 8

Thread: What size is yours? :)

  1. #1

    Thread Starter
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540

    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)

  2. #2
    Member Stef's Avatar
    Join Date
    May 2001
    Posts
    41

    Smile

    I don't have a start button!
    Using Litestep (www.litestep.net)
    Different language Windows versions might have a different size start button though.

  3. #3

    Thread Starter
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540


    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)

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Me neither

    Using nGUI 2.1 Developer's edition (running on Win98 / WinME)

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    62x22

    My start button's caption is different, if it didn't have a different size it wouldn't fit
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  6. #6
    Fanatic Member
    Join Date
    May 2001
    Posts
    837
    mines 55x22

    win 2k
    1600x1200

  7. #7
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Hey, just curious: why do you wanna know the size of our start button?
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  8. #8

    Thread Starter
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    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
  •  



Click Here to Expand Forum to Full Width