Sign in to follow this  
Followers 0
fisofo

Catch Maximize events?

4 posts in this topic

Haven't been able to find this asked yet, but is there a way to catch a maximize event from a window? Something along the lines of some GUIRegisterMsg or something?

I'm asking because someone asked me if I could capture that and interpret it to "maximize to half the screen" rather than a normal maximize to the full screen. I've actually seen this done via other window control programs (non-autoit), so i'm guessing there's a way.

thanks!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Take a look at this:

http://msdn2.microsoft.com/en-us/library/m...hgetmessagehook

If I find something else more useful I edit the post.

EDIT: The message you want to hook is WM_SIZE.

http://msdn.microsoft.com/library/default....ges/wm_size.asp

Edited by CoePSX

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post


Link to post
Share on other sites

heh.... I got lost I'm afraid :) Perhaps I'll come back to this some day when i understand that side of coding a bit more...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0