Tree-View Control Extended Styles

This section lists extended styles used when creating tree-view controls. The value of extended styles is a bitwise combination of these styles.

ConstantDescription
TVS_EX_AUTOHSCROLL

Windows Vista. Remove the horizontal scroll bar and auto-scroll depending on mouse position.

TVS_EX_DIMMEDCHECKBOXES

Windows Vista. Include dimmed checkbox state if the control has the TVS_CHECKBOXES style.

TVS_EX_DOUBLEBUFFER

Windows Vista. Specifies how the background is erased or filled.

TVS_EX_DRAWIMAGEASYNC

Windows Vista. Retrieves calendar grid information.

TVS_EX_EXCLUSIONCHECKBOXES

Windows Vista. Include exclusion checkbox state if the control has the TVS_CHECKBOXES style.

TVS_EX_FADEINOUTEXPANDOS

Windows Vista. Fade expando buttons in or out when the mouse moves away or into a state of hovering over the control.

TVS_EX_MULTISELECT

Not supported. Do not use.

TVS_EX_NOINDENTSTATE

Windows Vista. Do not indent the tree view for the expando buttons.

TVS_EX_NOSINGLECOLLAPSE

Windows Vista. Intended for internal use; not recommended for use in applications. Do not collapse the previously selected tree-view item unless it has the same parent as the new selection. This style must be used with the TVS_SINGLEEXPAND style.

Note  This style may not be supported in future versions of Comctl32.dll. Also, this style is not defined in commctrl.h. Add the following definition to the source files of your application to use this style: #define TVS_EX_NOSINGLECOLLAPSE 0x0001
 
TVS_EX_PARTIALCHECKBOXES

Windows Vista. Include partial checkbox state if the control has the TVS_CHECKBOXES style.

TVS_EX_RICHTOOLTIP

Windows Vista. Allow rich tooltips in the tree view (custom drawn with icon and text).

Requirements

Header

CommCtrl.h

 

 

Show: