TreeView_GetNextSelected macro (commctrl.h)

Retrieves the tree-view item that bears the TVGN_NEXTSELECTED relationship to a specified tree item.

Syntax

HTREEITEM TreeView_GetNextSelected(
   HWND      hwnd,
   HTREEITEM *hitem
);

Parameters

hwnd

Type: HWND

Handle to the tree-view control.

hitem

Type: HTREEITEM*

Specifies the tree item by handle.

Return value

Type: HTREEITEM

Handle to an item, or NULL if no item is found with the TVGN_NEXTSELECTED relationship.

Remarks

Used to find the next selected item when there are multiple items selected.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header commctrl.h

See also

TVM_GETNEXTITEM