CTreeCtrl Question
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi all! When a branch is clicked, how do I retrieve the information of its parent and grandParent? I have not been able to find help in GetParent()and GetParentItem() in the msdn (the help is confusing.) Thank you Vu vucsuf
CTreeCtrl::GetParentItem HTREEITEM GetParentItem( HTREEITEM hItem ); Return Value: The handle of the parent item; otherwise NULL. Parameters: hItem - Handle of a tree item. Remarks: Call this function to retrieve the parent of hItem. --Mike-- http://home.inreach.com/mdunn/ "....." -- Silent Bob :love: your :bob: with :vegemite: and :beer: