| View previous topic :: View next topic |
| Author |
Message |
sickpuma
Joined: 28 May 2009 Posts: 8
|
Posted: Thu May 28, 2009 6:22 am Post subject: How to programatically resize a control in an external app? |
|
|
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 |
|
 |
BoBoł Guest
|
Posted: Thu May 28, 2009 8:33 am Post subject: |
|
|
| Quote: | ControlMove
--------------------------------------------------------------------------------
Moves or resizes a control. |  |
|
| Back to top |
|
 |
sickpuma
Joined: 28 May 2009 Posts: 8
|
Posted: Fri May 29, 2009 8:15 am Post subject: |
|
|
| BoBoł wrote: | | Quote: | ControlMove
--------------------------------------------------------------------------------
Moves or resizes a control. |  |
Wow, can't believe I missed that... thanks! |
|
| Back to top |
|
 |
|