TVM_INSERTITEM

The TVM_INSERTITEM message inserts a new item in a tree-view control. You can send this message explicitly or by using the TreeView_InsertItem macro.

TVM_INSERTITEM

wParam = 0;

lParam = (LPARAM) (LPTV_INSERTSTRUCT) lpis;

Parameters

lpis

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

Return Values

Returns the handle to the new item if successful or NULL otherwise.

See Also

TreeView_InsertItem, TV_INSERTSTRUCT, TVN_ENDLABELEDIT