TreeView_InsertItem

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

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related message: TVM_INSERTITEM

Syntax

HTREEITEM TreeView_InsertItem( hwnd, lpis);

Parameters

hwndTV

Handle to the tree view control.

lpis

Long pointer to a TVINSERTSTRUCT structure that specifies the attributes of the tree view item.

Return Values

The handle to the new item indicates success. NULL indicates failure.

See Also

TVN_ENDLABELEDIT