LINE control styles

Styles

%SS_BLACKFRAME

Draw a box with the frame drawn in the same color as the window frames. This color is black in the default Windows color scheme.

%SS_BLACKRECT

Draw a rectangle filled with the current window frame color. This color is black in the default Windows color scheme.

%SS_ETCHEDFRAME

Draw the frame of the control using an etched edge style. (default)

%SS_ETCHEDHORZ

Draw the horizontal edges of the control using an etched edge style.

%SS_ETCHEDVERT

Draw the vertical edges of the control using an etched edge style.

%SS_GRAYFRAME

Draw a box with the frame drawn with the same color as the screen background (desktop). This color is gray in the default Windows color scheme.

%SS_GRAYRECT

Draw a rectangle filled with the current screen background color. This color is gray in the default Windows color scheme.

%SS_NOPREFIX

Prevent interpretation of any ampersand (&) characters in the control's text as a control accelerator prefix characters. These normally are displayed with the ampersand removed and the next character in the string underscored.

%SS_NOTIFY

Sends %STN_CLICKED and %STN_DBLCLK notification messages to the line controls Callback Function when the user clicks or double-clicks the line control.

%SS_RIGHTJUST

Force the bottom-right corner of the control to remain fixed when the control is resized. Only the top and left sides are adjusted to accommodate a new image.

%SS_WHITEFRAME

Draw a box with the frame drawn with the same color as the window backgrounds. This color is white in the default Windows color scheme.

%SS_WHITERECT

Draw a rectangle filled with the current window background color. This color is white in the default Windows color scheme.

 

Extended Styles

%WS_EX_CLIENTEDGE

Apply a sunken edge border to the control.

%WS_EX_LEFT

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

%WS_EX_RIGHT

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.

%WS_EX_STATICEDGE

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

%WS_EX_TRANSPARENT

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.

%WS_EX_WINDOWEDGE

Apply a raised edge border to the control.

 

See Also

Styles reference

CONTROL ADD LINE