fisofo Posted January 14, 2007 Share Posted January 14, 2007 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! Link to comment Share on other sites More sharing options...
CoePSX Posted January 14, 2007 Share Posted January 14, 2007 (edited) Take a look at this:http://msdn2.microsoft.com/en-us/library/m...hgetmessagehookIf 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 January 14, 2007 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] Link to comment Share on other sites More sharing options...
fisofo Posted January 14, 2007 Author Share Posted January 14, 2007 Take a look at this:http://msdn2.microsoft.com/en-us/library/m...hgetmessagehookIf 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.aspNice, thank you. I'll post if I am able to do it. Link to comment Share on other sites More sharing options...
fisofo Posted January 17, 2007 Author Share Posted January 17, 2007 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... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now