TreeView_InsertItem macro

Inserts a new item in a tree-view control. You can use this macro or send the TVM_INSERTITEM message explicitly.

Syntax


HTREEITEM TreeView_InsertItem(
   HWND             hwndTV,
   LPTVINSERTSTRUCT lpis
);

Parameters

hwndTV

Type: HWND

Handle to the tree-view control.

lpis

Type: LPTVINSERTSTRUCT

Pointer to a TVINSERTSTRUCT structure that specifies the attributes of the tree-view item.

Return value

Returns the HTREEITEM handle to the new 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

TVN_ENDLABELEDIT

 

 

Show: