This structure contains information used to add a new item to a tree view control.
At a Glance
Header file: | Commctrl.h |
Windows CE versions: | 2.0 and later |
Syntax
typedef struct _TVINSERTSTRUCT {
HTREEITEM hParent;
HTREEITEM hInsertAfter;
TV_ITEM item;
} TVINSERTSTRUCT, FAR *LPTVINSERTSTRUCT;
Members
hParent
Handle to the parent item. If this member is the TVI_ROOT value or NULL, the item is inserted at the root of the tree view control.
hInsertAfter
Handle to the item after which the new item is to be inserted, or one of the following values:
Value | Description |
TVI_FIRST | Inserts the item at the beginning of the list. |
TVI_LAST | Inserts the item at the end of the list. |
TVI_SORT | Inserts the item into the list in alphabetical order. |
item
TV_ITEM structure that contains information about the item to add.
See Also