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 programatically resize a control in an external app?

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



Joined: 28 May 2009
Posts: 8

PostPosted: Thu May 28, 2009 6:22 am    Post subject: How to programatically resize a control in an external app? Reply with quote

I would like to resize a control in an external application.
As an example, assume I want to resize the "0" key in the windows calculator so that it is wider and easier to press (it's okay if it overlaps with another button).

I am guessing I would need to use postmessage with one of these values:
WM_SIZE
WM_SIZING

However, after looking at the help on MSDN, it appears that both of those messages are simply events to know when the user resizes the control and aren't used to actually resize the control. Also, I'm guessing that if it is one of these commands, I will need to send a more complicated data structure than an integer (for example a Rect), so if the solution does require it, could you please include an example?

Is it just a different WM_ message that I have overlooked or am I supposed to use something else besides sendmessage/postmessage?

Thanks
Back to top
View user's profile Send private message
BoBoł
Guest





PostPosted: Thu May 28, 2009 8:33 am    Post subject: Reply with quote

Quote:
ControlMove
--------------------------------------------------------------------------------
Moves or resizes a control.
Question
Back to top
sickpuma



Joined: 28 May 2009
Posts: 8

PostPosted: Fri May 29, 2009 8:15 am    Post subject: Reply with quote

BoBoł wrote:
Quote:
ControlMove
--------------------------------------------------------------------------------
Moves or resizes a control.
Question


Wow, can't believe I missed that... thanks!
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