Resizable CTreeCtrl

I've embedded a treectrl in a resizable CDialogBar. How do
I resize the treectrl when the user resizes my CdialogBar
jntvAsked:
Who is Participating?
 
Tommy HuiConnect With a Mentor EngineerCommented:
You need to override WM_SIZE and when you get this message, first call the base class's OnSize method. Then you will need to call GetClientRect to determine what is the size of the dialog bar. From that, you should be able to determine the new size of the tree control. Then you resize the tree control by using MoveWindow().

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.