Jump to content
  • Advertisement
Sign in to follow this  
BornToCode

Child Not Resizing along with Parent.

This topic is 4493 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

This is in Win32, but if anyone knows how to do it in mfc as well that would be fine. So the problem is that i have two windows. One is the parent and another one is the child of that window. Ok the problem that i am having is that when i move the parent the child moves along with it fine and smooth, but when i resize the parent the child are not being resize along with the parent. So i am wondering if there is a flag in the CreateWindow function that i have to used in order to do this.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by BornToCode
This is in Win32, but if anyone knows how to do it in mfc as well that would be fine. So the problem is that i have two windows. One is the parent and another one is the child of that window. Ok the problem that i am having is that when i move the parent the child moves along with it fine and smooth, but when i resize the parent the child are not being resize along with the parent. So i am wondering if there is a flag in the CreateWindow function that i have to used in order to do this.


Reword if what kuphryn said is unclear: you have to resize your child in your parent's WM_SIZE message handler.

Regards,

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!