-
CTreeView?
Just wondering if anyone understands how CTreeView is actually implemented. When you look at the source code, the GetTreeCtrl() function just returns a pointer to itself (CTreeView). If you follow the inheritance chain, you will find that no-where does it inherit from CTreeCtrl. Can anyone shed any light?
thanks
-
Re: CTreeView?
CTreeView::GetTreeCtrl() returns a reference to a CTreeCtrl and not a CTreeView.
The CTreeCtrl is the wrapper that sets onto of the API TreeCtrl.
So you can access the TreeCtrl and add an Item like so
CTreeCtrl &Tree = CTreeView::GetTreeCtrl();
Tree.InsertItem("New Item added");