TreeView_GetChild macro

Retrieves the first child item of the specified tree-view item. You can use this macro, or you can explicitly send the TVM_GETNEXTITEM message with the TVGN_CHILD flag.

Syntax


HTREEITEM TreeView_GetChild(
   HWND      hwndTV,
   HTREEITEM hitem
);

Parameters

hwndTV

Type: HWND

Handle to the tree-view control.

hitem

Type: HTREEITEM

Handle to a tree-view item.

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

Commctrl.h

See also

Reference
TreeView_GetNextItem
TreeView_GetNextSibling
TreeView_GetParent
TreeView_GetPrevSibling

 

 

Show: