Adding trees to tabs in MFC

Started by
0 comments, last by silvermace 18 years, 11 months ago
Hi everyone, I am trying to add Trees (CTreeCtrl) controls to Tab boxes (CTabCtrl) in MFC (Visual C++ 6.0). I created a dialog box and put a tab control on it, but it wouldn't let me put a tree on it. So then I initiated the tab and added 4 tabs to it. Now I'm trying to figure out how to add a tree control to one of the tabs. I created a variable of type CTreeCtrl and tried to assign its parent to the tab, but that didn't work. Does anyone know how I can make this work? Brain21.
Advertisement
the MFC CTabCtrl is an odd creature, there is however and excellent tutorial
available here: http://www.codersource.net/mfc_ctabctrl.html

Hope that helps, sorry I wasn't more specific. I'll try come back when i have
more free time.

Cheers
-Danu
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website

This topic is closed to new replies.

Advertisement