Another title:
How to use a derived CTreeCtrl in a CTreeView?
It is similar with this article: “How to use an derived CListCtrl in CListView” or “How do I subclass the CListCtrl part of a CListView Class?“.
Just like CListView, there is no CTreeCtrl to subclass in CTreeView. The CTreeView is the subclass of the WC_TREEVIEW common control. If you need some extra feature in the CTreeView, the best way is like the method mentioned in the previous two articles:
Forget CTreeView and derive your own view CMyView from CView, and bond your CMyTreeCtrl in the view. Now you got the full control of the tree.
These two articles may be helpful to you:
Permalink: Code Library - How to subclass CTreeCtrl in CTreeView?
Subcribe the update with Google Reader.
RSS feed for comments on this post · TrackBack URI
Leave a reply