TVINSERTSTRUCTTVINSERTSTRUCT*
*Contents  *Index  *Topic Contents
*Previous Topic: TVHITTESTINFO
*Next Topic: TVITEM

TVINSERTSTRUCT


typedef struct tagTVINSERTSTRUCT {
    HTREEITEM hParent;
    HTREEITEM hInsertAfter;
#if (_WIN32_IE >= 0x0400)
    union
    {
        TVITEMEX itemex;
        TVITEM item;
    } DUMMYUNIONNAME;
#else
    TVITEM item;
#endif
} TVINSERTSTRUCT, FAR *LPTVINSERTSTRUCT;

Contains information used to add a new item to a tree view control. This structure is used with the TVM_INSERTITEM message. The structure is identical to the TV_INSERTSTRUCT structure, but it has been renamed to follow current naming conventions.

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:
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.
itemex
Version 4.71. TVITEMEX structure that contains information about the item to add.
item
TVITEM structure that contains information about the item to add.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.