Tree-View Control Reference

The following messages, macros, notification messages, and structures are associated with tree-view controls. These elements can be grouped as follows.

Item Labels

TV_ITEM
TVN_GETDISPINFO

Label Editing

TVM_EDITLABEL
TVM_ENDEDITLABELNOW
TVM_GETEDITCONTROL
TVN_BEGINLABELEDIT
TVN_ENDLABELEDIT

Item States

TVM_GETITEM
TVM_SELECTITEM
TVM_SETITEM
TVN_SELCHANGED
TVN_SELCHANGING

Tree-View Image Lists

TVM_GETIMAGELIST
TVM_SETIMAGELIST

Item Position

TV_INSERTSTRUCT
TVM_INSERTITEM
TVM_SORTCHILDREN
TVM_SORTCHILDRENCB

Parent and Child Items

TVM_EXPAND
TVM_GETINDENT
TVM_SETINDENT
TVN_ITEMEXPANDED
TVN_ITEMEXPANDING

Item Information

TV_DISPINFO
TVM_ENSUREVISIBLE
TVM_GETCOUNT
TVM_GETNEXTITEM
TVM_GETVISIBLECOUNT

Drag and Drop Operations

TV_HITTESTINFO
TVM_CREATEDRAGIMAGE
TVM_HITTEST
TVN_BEGINDRAG
TVN_BEGINRDRAG

Miscellaneous

NM_TREEVIEW
TV_KEYDOWN
TV_SORTCB
TVM_DELETEITEM
TVM_GETISEARCHSTRING
TVM_GETITEMRECT
TVN_DELETEITEM
TVN_KEYDOWN
TVN_SETDISPINFO