Tree View Control Window StylesTree View Control Window Styles*
*Contents  *Index  *Topic Contents
*Previous Topic: Tree View Control Reference
*Next Topic: Tree View Control Item States

Tree View Control Window Styles


The following window styles are used when creating tree view controls.
TVS_CHECKBOXES Version 4.70. Enables check boxes for items in a tree view control. Effectively, when set to this style, the control creates and sets a state image list using DrawFrameControl. For more information, see Working with state image indexes. Once the control is created with this style, it cannot be removed. If it is necessary to remove this style, the control must be destroyed and a new one created in its place.
TVS_DISABLEDRAGDROP Prevents the tree view control from sending TVN_BEGINDRAG notification messages.
TVS_EDITLABELS Allows the user to edit the labels of tree view items.
TVS_FULLROWSELECT Version 4.71. Enables full-row selection in the tree view. The entire row of the selected item is highlighted, and clicking anywhere on an item's row will cause it to be selected. This style cannot be used in conjunction with the TVS_HASLINES style.
TVS_HASBUTTONS Displays plus (+) and minus (-) buttons next to parent items. The user clicks the buttons to expand or collapse a parent item's list of child items. To include buttons with items at the root of the tree view, TVS_LINESATROOT must also be specified.
TVS_HASLINES Uses lines to show the hierarchy of items.
TVS_INFOTIP Version 4.71. The tree view control will send the TVN_GETINFOTIP notification to obtain tooltip information.
TVS_LINESATROOT Uses lines to link items at the root of the tree view control. This value is ignored if TVS_HASLINES is not also specified.
TVS_NONEVENHEIGHT Version 4.71. The height of the items can be set to an odd height with the TVM_SETITEMHEIGHT message. By default, the height of items must be an even value.
TVS_NOSCROLL Version 4.71. Disables both horizontal and vertical scrolling in the control. The control will not display any scroll bars.
TVS_NOTOOLTIPS Version 4.70. The tree view control does not support tooltips.
TVS_RTLREADING Version 4.70. Displays text using right-to-left reading order on Hebrew or Arabic systems.
TVS_SHOWSELALWAYS Causes a selected item to remain selected when the tree view control loses focus.
TVS_SINGLEEXPAND Version 4.71. When this style is enabled, changing the selection in the tree view will automatically cause the item being selected to expand and the item being unselected to collapse. If the mouse is used to single-click the selected item and that item is closed, it will be expanded. If the selected item is single-clicked when it is open, it will be collapsed.
TVS_TRACKSELECT Version 4.70. Enables hot tracking in a tree view control.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.