If at some point I want to know which HTREEITEM is selected in a TreeView,
how do I find that out?
Is the API keeping track of that for me or do I have to handle the
TVN_SELCHANGED event and store the value for later use?
Corno
HTREEITEM TreeView_GetSelection(
hwnd
);
Parameters
hwnd
Handle to the tree-view control.
Return Values
Returns the handle to the item if successful or NULL otherwise.
See Also
TreeView_GetNextItem, TVM_GETNEXTITEM