Tree-View Control Messages

An application sends messages to add items and to alter the appearance and behavior of a tree-view control. Each message has a corresponding macro that you can use instead of sending the message explicitly. Some messages may have related macros, which are a more specialized form of a corresponding macro.

Message Macro
TVM_CREATEDRAGIMAGE TreeView_CreateDragImage
TVM_DELETEITEM TreeView_DeleteAllItems
TreeView_DeleteItem
TVM_EDITLABEL TreeView_EditLabel
TVM_ENDEDITLABELNOW TreeView_EndEditLabelNow
TVM_ENSUREVISIBLE TreeView_EnsureVisible
TVM_EXPAND TreeView_Expand
TVM_GETCOUNT
TreeView_GetCount
TVM_GETEDITCONTROL
TreeView_GetEditControl
TVM_GETIMAGELIST
TreeView_GetImageList
TVM_GETINDENT TreeView_GetIndent
TVM_GETISEARCHSTRING TreeView_GetISearchString
TVM_GETITEM TreeView_GetItem
TVM_GETITEMRECT TreeView_GetItemRect
TVM_GETNEXTITEM TreeView_GetChild
TreeView_GetDropHilite

TreeView_GetFirstVisible
TreeView_GetNextItem
TreeView_GetNextSibling
TreeView_GetNextVisible
TreeView_GetParent
TreeView_GetPrevSibling
TreeView_GetPrevVisible
TreeView_GetRoot
TreeView_GetSelection
TVM_GETVISIBLECOUNT TreeView_GetVisibleCount
TVM_HITTEST TreeView_HitTest
TVM_INSERTITEM TreeView_InsertItem
TVM_SELECTITEM TreeView_Select
TreeView_SelectDropTarget
TreeView_SelectItem
TreeView_SelectSetFirstVisible
TVM_SETIMAGELIST TreeView_SetImageList
TVM_SETINDENT TreeView_SetIndent
TVM_SETITEM TreeView_SetItem
TVM_SORTCHILDREN TreeView_SortChildren
TVM_SORTCHILDRENCB TreeView_SortChildrenCB