Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTreeCtrl in a CTabCtrl problem - HELP!

Status
Not open for further replies.

qednick

Programmer
Jul 26, 2002
516
US
Hi, I'm trying to display a tree view control in a tab control (all in a dialog). If I place the tree control onto the tab control in the dialog editor, the tree is obscured by the tab control. If I set the tab control to transparent, it looks fine in the dialog editor but when it comes to running the program, the tree is still obscured by the tab control.

Now, I've tried all kinds of things but nothing seems to work. Can anybody explain to me how to do this?

I want to keep the same tree control for all the tabs. I plan to change the tree contents depending on which tab is selected.
 
I've resorted to using the old fashioned method of adding a client window to show the tree control. I just figured there may be a more efficient way of achieving this without having to use client windows. It would seem a bit silly if you have to use client dialogs every time you use a CTabCtrl even if you're only displaying the same control in the tab control no matter which tab the user selects.

If anyone knows a way to achieve this, I'd love to know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top