Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure contains information used to add a new item to a tree view control.

Syntax

typedef struct _TV_INSERTSTRUCT { 
  HTREEITEM 
hParent; 
  HTREEITEM 
hInsertAfter; 
  TV_ITEM 
item; 
} TV_INSERTSTRUCT, FAR* LPTV_INSERTSTRUCT;

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_ITEMstructure that contains information about the item to add.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also