分享

树形控件的结构:TVINSERTSTRUCT

 牛人的尾巴 2015-06-20

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.

Top of Page

1997 Microsoft Corporation. All rights reserved. Terms of Use.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多