|
A tree view control is a window that displays a hierarchical list of items.
Each item consists of a label and an optional bitmapped image, and each item can
have a list of subitems associated with it. By clicking an item, the user can
expand and collapse the associated list of subitems. In addition to the window
styles that apply to the common controls, there are styles specific to each new
common control.
| Tree View Control Styles |
| TVS_HASLINES |
Has lines connecting child items to parents. |
| TV_LINESATROOT |
Has lines connecting child items to the root of the hierarchy. |
| TVS_HASBUTTONS |
Adds a button to the left of each parent. |
| TVS_EDITLABELS |
Allows user to edit the labels of the items. |
| TVS_SHOWSELALWAYS |
The selected item remains selected when the control loses
focus. |
| TVS_DISABLEDRAGDROP |
Disables drag-drop notifications. |
|