TreeView_GetSelection macro
Retrieves the currently selected item in a tree-view control. You can use this macro, or you can explicitly send the TVM_GETNEXTITEM message with the TVGN_CARET flag.
Syntax
HTREEITEM TreeView_GetSelection( HWND hwndTV );
Parameters
- hwndTV
-
Type: HWND
Handle to the tree-view control.
Return value
Returns the handle to the item if successful, or NULL otherwise.
Requirements
|
Minimum supported client |
Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
See also
Show: