• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

Resizable CTreeCtrl

I've embedded a treectrl in a resizable CDialogBar. How do
I resize the treectrl when the user resizes my CdialogBar
0
jntv
Asked:
jntv
1 Solution
 
Tommy HuiEngineerCommented:
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now