TVM_INSERTITEM

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

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related macro: TreeView_InsertItem

Syntax

  1. TVM_INSERTITEM wParam = 0;
    lParam = (LPARAM)(LPTV_INSERTSTRUCT) lpis;

Parameters

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 otherwise.

See Also

TV_INSERTSTRUCT, TVN_ENDLABELEDIT