Sign in to follow this  

Dynamically Changing Tree View Control Size(C++)

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

This topic is 3317 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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this