Jump to content
  • Advertisement
Sign in to follow this  

Resizing Window

This topic is 4172 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 resizing the device's window in the WindowProc on the WM_SIZE event and then resetting the device. Everything works fine, however I've noticed that the WM_SIZE event is triggered every time the mouse moves during a resize. In other words, if the user grabs the lower right corner of the window and drags it down to make it bigger, this causes about 20 WM_SIZE events to be fired. Therefore my device is being resized and reset 20 times. I'm wondering, is there any way to respond to some sort of resizing complete event instead. So when the user finishes resizing and releases the mouse button, that is when I want to resize and reset the device. So it only happens once at the end of the drag. I hope that makes sense. Any help or ideas on how to approach this problem is very much appreciated.

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!