Retrieve TreeView Selected Item
-
I finally managed to put my TreeView List together, only to find out I'm unable to retrieve the selection. Does anyone know how to get the selection?
-
I finally managed to put my TreeView List together, only to find out I'm unable to retrieve the selection. Does anyone know how to get the selection?
TreeView_GetSelection[^] for non-MFC or CTreeCtrl::GetSelectedItem[^] for MFC.
-
TreeView_GetSelection[^] for non-MFC or CTreeCtrl::GetSelectedItem[^] for MFC.
But that returns an HTREEITEM, can't find any details on this structure on MSDN.
-
But that returns an HTREEITEM, can't find any details on this structure on MSDN.
-
You can use that handle to access the item using TreeView_GetItem[^] or CTreeCtrl::GetItem[^]. Read about the TVITEM[^] structure.
TVITEM* Selected; TreeView_GetItem( HandleforTreeList, Selected); Fails saying uninitialized variable!
-
TVITEM* Selected; TreeView_GetItem( HandleforTreeList, Selected); Fails saying uninitialized variable!
-
I finally managed to put my TreeView List together, only to find out I'm unable to retrieve the selection. Does anyone know how to get the selection?