TAB control styles



Tab control has a border, and tabs are displayed as tabs (not buttons).


Tabs are displayed as buttons, and control has no border.


All tabs in the control are displayed with the same width.


Tab rows are not stretched to fill the width of the control


The selected tab is indented. This style is only valid if the %TCS_BUTTONS style is also applied.


Icons are forced to the left.


Labels are forced to the left.


Tabs receive the focus when clicked.


Tab never receives the focus.


Parent window is responsible for drawing tabs


A Tooltip control is associated with the control


Add a thin line border around the text box control.


Create a control that is initially disabled. A disabled control cannot receive input from the user.


Define the start of a group of controls. The first control in each group should also use %WS_TABSTOP style. The next %WS_GROUP control in the tab order defines the end of this group and the start of a new group. Groups configured this way permit the arrow keys to shift focus between the controls within the group, and focus can jump from group to groups with the usual TAB and SHIFT+TAB keys. Both tab stops and groups are permitted to wrap from the end of the tab order back to the start.


Allow the list box control to receive keyboard focus when the user presses the TAB and SHIFT+TAB keys. The TAB key shifts keyboard focus to the next control with the %WS_TABSTOP style, and SHIFT+TAB shifts focus to the previous control with %WS_TABSTOP. (default)


Extended Styles


Apply a sunken edge border to the control.


The control has generic "left-aligned" properties. (default)


The control has generic "right-aligned" properties. This style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading order alignment.


Apply a three-dimensional border style to the control (intended to be used for items that do not accept user input).


Controls/windows beneath the dialog are drawn before the dialog is drawn. The dialog is deemed transparent because elements behind the dialog have already been painted - the dialog itself is not drawn differently. True transparency is achieved by using Regions - see MSDN and/or the Platform SDK documentation for more information.


Apply a raised edge border to the control.


See Also

Styles reference


TAB statement