Click to See Complete Forum and Search --> : CTreeCtrl/CTreeView


Asiyah Younas
May 18th, 1999, 10:24 PM
I have created a SDI application in AppWizard with base class CTreeView instead of CView but no tree was being displayed on its main window when I run it after compiling and building this application. Please any body would tell me that why it happens. Did I miss something to create and display a tree structure while creating an application. Or there is need to do any more with its code to do so.
Thanks.

Franky Braem
May 19th, 1999, 01:30 AM
Use the InsertItem method in OnInitialUpdate() to insert items.

In the PreCreateWindow you can change the style of your tree like this :


cs.style |= TVS_HASLINES | TVS_HASBUTTONS;
return CTreeView::PreCreateWindow(cs);