The TV_INSERTSTRUCT structure contains information used to add a new item to a tree-view control.
typedef struct _TV_INSERTSTRUCT {  tvins 
    HTREEITEM hParent; 
    HTREEITEM hInsertAfter; 
    TV_ITEM   item; 
} TV_INSERTSTRUCT, FAR *LPTV_INSERTSTRUCT; 
 
| Value | Meaning | 
| 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. | 
This structure is used with the TVM_INSERTITEM message.