Jump to content
  • Advertisement
Sign in to follow this  
fathom88

Resizing a Window Question

This topic is 4699 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using VC++ to make an app which runs as a desktop Window. I created the window with a resize border. I want the user to be able to resize the window only when he or she is making the window smaller. I had hoped to be able to over-ride the OnSize message handler and simply exit out before "CWnd::OnSize(nType, cx, cy)" is called when the cx or cy is greater than the initial value. However, it did not work. I stepped through and it does exit the function before the parent's OnSize is called. Is there another message that gets called when the user drags the border to resize the window? Is there a better way to do this? Thanks for any help.

Share this post


Link to post
Share on other sites
Advertisement
like Dave said , the OnGetMinMaxInfo works like a charm , look it up in the MSDN , if your thinking about resizing it again after the user does it will cause a lot of flickring , which you can do without
hope this helps.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!