Jump to content
  • Advertisement
Sign in to follow this  
Sp00n00n

Dynamically Changing Tree View Control Size(C++)

This topic is 3626 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 have created a tree view control that occupies en entire MDI Child Window using WS_MAXIMIZE. However, when I change the size of the Window, the tree view control remains the same size it began as. I was hoping there was a message I could send to the control to update the size, but I haven't come up with anything after searching for an hour or so. If anyone has any ideas let me know, thanks!

Share this post


Link to post
Share on other sites
Advertisement
If you are using mfc :

treeView->SetWindowPos(NULL, xPos, yPos, width, height, SWP_NOZORDER);




If you are using straight win32 :

SetWindowPos(whTree, NULL, xPos, yPos, width, height, SWP_NOZORDER);




You will need to trap the WM_SIZE message for the parent window to tell you when the child tree view needs resizing.

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!