Tree-View Item States

An item's state determines its appearance and functionality. It can be zero, or one or more of the following values.

TVIS_BOLD The item is bold.
TVIS_CUT The item is selected as part of a cut and paste operation.
TVIS_DROPHILITED The item is selected as a drag and drop target.
TVIS_EXPANDED The item's list of child items is currently expanded; that is, the child items are visible. This value applies only to parent items.
TVIS_EXPANDEDONCE The item's list of child items has been expanded at least once. The TVN_ITEMEXPANDING and TVN_ITEMEXPANDED notification messages are not sent for parent items that have specified this value. This value applies only to parent items.
TVIS_OVERLAYMASK The item's overlay image is included when the item is drawn. The index of the overlay image must be specified in the state member of the TV_ITEM structure by using the INDEXTOOVERLAYMASK macro. The overlay image must be added to the tree view's image list by using the ImageList_SetOverlayImage function. This value should not be combined with any other value.
TVIS_SELECTED The item is selected. The appearance of a selected item depends on whether it has the focus and on whether the system colors are used for selection.
TVIS_STATEIMAGEMASK The item's state image is included when the item is drawn. The index of the state image must be specified in the state member of the TV_ITEM structure by using theINDEXTOSTATEIMAGEMASK macro. This value should not be combined with any other value.
TVIS_USERMASK Same as TVIS_STATEIMAGEMASK.