Other Window Styles for Selection Tree Controls

InstallShield 2016

Project • This information applies to the following project types:

InstallScript
InstallScript MSI
InstallScript Object

The following window style options are available for selection tree controls. For additional information, see the MSDN Library.

Window Styles for Selection Tree Controls

Value

Description

WS_GROUP

Specifies the first control in a group of controls. All controls defined with this style after the first control belong to the same group.

TVS_EDITLABELS

Enables the user to edit the labels of tree view items.

TVS_HASBUTTONS

Displays plus (+) and minus (-) buttons next to parent items. The user taps the buttons to expand or collapse a parent items list of child items. To include buttons with items at the root of the tree view, you must also specify the TVS_LINESATROOT style.

TVS_DISABLEDRAGDROP

Prevents the tree view control from sending TVN_BEGINDRAG notification messages.

TVS_SHOWSELALWAYS

Uses the system highlight colors to draw the selected item.

TVS_FULLROWSELECT

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 causes it to be selected. This style cannot be used in conjunction with the TVS_HASLINES style.

TVS_HASLINES

Uses lines to show the hierarchy of items.

TVS_LINESATROOT

Uses lines to link items at the root of the tree view control. This value is ignored if the TVS_HASLINES control is not also specified.

TVS_RTLREADING

Causes text to be displayed from right-to-left (RTL). Usually, windows display text left-to-right (LTR). Windows can be mirrored to display languages such as Hebrew or Arabic that read RTL. Typically, tree-view text is displayed in the same direction as the text in its parent window. If TVS_RTLREADING is set, tree-view text reads in the opposite direction from the text in the parent window.

TVS_NOTOOLTIPS

Disables ToolTips.

TVS_CHECKBOXES

Enables items in a tree view control to be displayed as check boxes. This style uses item state images to produce the check box effect.

TVS_TRACKSELECT

Enables hot tracking in a tree-view control.

TVS_SINGLEEXPAND

Causes the item being selected to expand and the item being unselected to collapse upon selection in the tree view. If the mouse is used to single-click the selected item and that item is closed, it will be expanded. If the user holds down the Ctrl key while selecting an item, the item being unselected will not be collapsed.

TVS_INFOTIP

Obtains ToolTip information by sending the TVN_GETINFOTIP notification.

TVS_NOSCROLL

Disables horizontal scrolling in the control. The control will not display any horizontal scroll bars.

TVS_NONEVENHEIGHT

Sets the height of the items to an odd height with the TVM_SETITEMHEIGHT message. By default, the height of items must be an even value.

See Also