-
CTreeCtrl/CTreeView
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.
-
Re: CTreeCtrl/CTreeView
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);