TreeView_InsertItem macro (commctrl.h)

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

Syntax

void TreeView_InsertItem(
   hwnd,
   lpis
);

Parameters

hwnd

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

None

Requirements

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

See also

TVN_ENDLABELEDIT