AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to retrieve & change the height of Tab's header?

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
hughman



Joined: 11 Feb 2007
Posts: 166

PostPosted: Tue Sep 08, 2009 3:52 am    Post subject: How to retrieve & change the height of Tab's header? Reply with quote

How to retrieve and change the height of the control Tab's header?
I looked up the tab's styles, messages and found nothing.
Back to top
View user's profile Send private message
YMP



Joined: 23 Dec 2006
Posts: 418
Location: Russia

PostPosted: Tue Sep 08, 2009 8:22 am    Post subject: Reply with quote

It seems you can only change the height for all the headers at once, not individually. If I am not mistaken.
Code:

TCM_GETITEMRECT = 0x130A
TCM_SETITEMSIZE = 0x1329

Gui, Add, Tab, hwndTabID, General|View|Appearance|Settings
Gui, Show
Return

F11::    ; Retrieve the height.
    VarSetCapacity(Rect, 16, 0)
    SendMessage, TCM_GETITEMRECT, 0, &Rect,, ahk_id %TabID%
    H := NumGet(Rect, 12) - NumGet(Rect, 4)
    MsgBox, Height: %H%
Return


F12::    ; Change the height.
    Height = 80
    SendMessage, TCM_SETITEMSIZE, 0, Height << 16,, ahk_id %TabID%
Return

GuiClose:
  ExitApp
Back to top
View user's profile Send private message
hughman



Joined: 11 Feb 2007
Posts: 166

PostPosted: Wed Sep 09, 2009 5:44 am    Post subject: Reply with quote

Thanks very much. It works.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group