xtd 0.2.0
Loading...
Searching...
No Matches
static styles

Definition

static styles definitions.

Warning
Internal use only

Variables

constexpr size_t SS_LEFT
 Designates a simple rectangle and displays the given text flush-left in the rectangle. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next flush-left line.
 
constexpr size_t SS_CENTER
 Designates a simple rectangle and displays the given text centered in the rectangle. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next centered line.
 
constexpr size_t SS_RIGHT
 Designates a simple rectangle and displays the given text flush-right in the rectangle. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next flush-right line.
 
constexpr size_t SS_ICON
 Designates an icon displayed in the dialog box. The given text is the name of an icon (not a filename) defined elsewhere in the resource file. The nWidth and nHeight parameters are ignored; the icon automatically sizes itself.
 
constexpr size_t SS_BLACKRECT
 Specifies a rectangle filled with the color used to draw window frames. The default is black.
 
constexpr size_t SS_GRAYRECT
 Specifies a rectangle filled with the color used to fill the screen background. The default is gray.
 
constexpr size_t SS_WHITERECT
 Specifies a rectangle filled with the color used to fill the window background. The default is white.
 
constexpr size_t SS_BLACKFRAME
 Specifies a box with a frame drawn with the same color as window frames. The default is black.
 
constexpr size_t SS_GRAYFRAME
 Specifies a box with a frame drawn with the same color as the screen background (desktop). The default is gray.
 
constexpr size_t SS_WHITEFRAME
 Specifies a box with a frame drawn with the same color as the window background. The default is white.
 
constexpr size_t SS_USERITEM
 Specifies a user-defined item.
 
constexpr size_t SS_SIMPLE
 Designates a simple rectangle and displays a single line of text flush-left in the rectangle. The line of text cannot be shortened or altered in any way. (The control's parent window or dialog box must not process the WM_CTLCOLOR message.)
 
constexpr size_t SS_LEFTNOWORDWRAP
 Designates a simple rectangle and displays the given text flush-left in the rectangle. Tabs are expanded, but words are not wrapped. Text that extends past the end of a line is clipped.
 
constexpr size_t SS_OWNERDRAW
 Specifies that the owner of the static control is responsible for drawing the control. The owner window receives a WM_DRAWITEM message whenever the control needs to be drawn.
 
constexpr size_t SS_BITMAP
 Specifies a bitmap is to be displayed in the static control. The given text is the name of a bitmap (not a filename) defined elsewhere in the resource file. The style ignores the nWidth and nHeight parameters; the control automatically sizes itself to accommodate the bitmap.
 
constexpr size_t SS_ENHMETAFILE
 Specifies an enhanced metafile is to be displayed in the static control. The given text is the name of a metafile. An enhanced metafile static control has a fixed size; the metafile is scaled to fit the static control's client area.
 
constexpr size_t SS_ETCHEDHORZ
 Draws the top and bottom edges of the static control using the EDGE_ETCHED edge style.
 
constexpr size_t SS_ETCHEDVERT
 Draws the left and right edges of the static control using the EDGE_ETCHED edge style.
 
constexpr size_t SS_ETCHEDFRAME
 Draws the frame of the static control using the EDGE_ETCHED edge style.
 
constexpr size_t SS_TYPEMASK
 A composite style bit that results from using the OR operator on SS_* style bits. Can be used to mask out valid SS_* bits from a given bitmask. Note that this is out of date and does not correctly include all valid styles. Thus, you should not use this style.
 
constexpr size_t SS_REALSIZECONTROL
 Adjusts the bitmap to fit the size of the static control. For example, changing the locale can change the system font, and thus controls might be resized. If a static control had a bitmap, the bitmap would no longer fit the control. This style bit dictates automatic redimensioning of bitmaps to fit their controls.
 
constexpr size_t SS_NOPREFIX
 Unless this style is specified, Windows will interpret any ampersand (&) characters in the control's text to be accelerator prefix characters. In this case, the ampersand is removed and the next character in the string is underlined. If a static control is to contain text where this feature is not wanted, SS_NOPREFIX may be added. This static-control style may be included with any of the defined static controls. You can combine SS_NOPREFIX with other styles by using the bitwise OR operator. This is most often used when filenames or other strings that may contain an ampersand need to be displayed in a static control in a dialog box.
 
constexpr size_t SS_NOTIFY
 Sends the parent window STN_CLICKED, STN_DBLCLK, STN_DISABLE, and STN_ENABLE notification messages when the user clicks or double-clicks the control.
 
constexpr size_t SS_CENTERIMAGE
 Specifies that, if the bitmap or icon is smaller than the client area of the static control, the rest of the client area is filled with the color of the pixel in the top left corner of the bitmap or icon. If the static control contains a single line of text, the text is centered vertically in the client area of the control.
 
constexpr size_t SS_RIGHTJUST
 Specifies that the lower right corner of a static control with the SS_BITMAP or SS_ICON style is to remain fixed when the control is resized. Only the top and left sides are adjusted to accommodate a new bitmap or icon.
 
constexpr size_t SS_REALSIZEIMAGE
 Prevents a static icon or bitmap control (that is, static controls that have the SS_ICON or SS_BITMAP style) from being resized as it is loaded or drawn. If the icon or bitmap is larger than the destination area, the image is clipped.
 
constexpr size_t SS_SUNKEN
 Draws a half-sunken border around a static control.
 
constexpr size_t SS_EDITCONTROL
 The static control duplicates the text-displaying characteristics of a multiline edit control. Specifically, the average character width is calculated in the same manner as with an edit control, and the function does not display a partially visible last line.
 
constexpr size_t SS_ENDELLIPSIS
 If the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses. Using this style will force the control s text to be on one line with no word wrap. Compare with SS_PATHELLIPSIS and SS_WORDELLIPSIS.
 
constexpr size_t SS_PATHELLIPSIS
 Replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash () characters, SS_PATHELLIPSIS preserves as much as possible of the text after the last backslash. Using this style will force the control s text to be on one line with no word wrap. Compare with SS_ENDELLIPSIS and SS_WORDELLIPSIS.
 
constexpr size_t SS_WORDELLIPSIS
 Truncates any word that does not fit in the rectangle and adds ellipses. Using this style will force the control s text to be on one line with no word wrap.
 
constexpr size_t SS_TOP
 Designates a simple rectangle and displays the given text flush-top in the rectangle.
 
constexpr size_t SS_VCENTER
 Designates a simple rectangle and displays the given text vertical centered in the rectangle.
 
constexpr size_t SS_BOTTOM
 Designates a simple rectangle and displays the given text flush-bottom in the rectangle.
 
constexpr size_t SS_BITMAP_NORMAL
 Specifies a normal bitmap is to be displayed in the static control.
 
constexpr size_t SS_BITMAP_STRETCH
 Specifies a stretched bitmap is to be displayed in the static control.
 
constexpr size_t SS_BITMAP_AUTOSIZE
 Specifies an auto-sized bitmap to be displayed in the static control.
 
constexpr size_t SS_BITMAP_CENTER
 Specifies a centered bitmap is to be displayed in the static control.
 
constexpr size_t SS_BITMAP_ZOOM
 Specifies a zoomed bitmap is to be displayed in the static control.
 

Variable Documentation

◆ SS_LEFT

constexpr size_t SS_LEFT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays the given text flush-left in the rectangle. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next flush-left line.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_CENTER

constexpr size_t SS_CENTER
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays the given text centered in the rectangle. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next centered line.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_RIGHT

constexpr size_t SS_RIGHT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays the given text flush-right in the rectangle. The text is formatted before it is displayed. Words that would extend past the end of a line are automatically wrapped to the beginning of the next flush-right line.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_ICON

constexpr size_t SS_ICON
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates an icon displayed in the dialog box. The given text is the name of an icon (not a filename) defined elsewhere in the resource file. The nWidth and nHeight parameters are ignored; the icon automatically sizes itself.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_BLACKRECT

constexpr size_t SS_BLACKRECT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a rectangle filled with the color used to draw window frames. The default is black.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_GRAYRECT

constexpr size_t SS_GRAYRECT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a rectangle filled with the color used to fill the screen background. The default is gray.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_WHITERECT

constexpr size_t SS_WHITERECT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a rectangle filled with the color used to fill the window background. The default is white.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_BLACKFRAME

constexpr size_t SS_BLACKFRAME
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a box with a frame drawn with the same color as window frames. The default is black.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_GRAYFRAME

constexpr size_t SS_GRAYFRAME
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a box with a frame drawn with the same color as the screen background (desktop). The default is gray.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_WHITEFRAME

constexpr size_t SS_WHITEFRAME
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a box with a frame drawn with the same color as the window background. The default is white.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_USERITEM

constexpr size_t SS_USERITEM
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a user-defined item.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_SIMPLE

constexpr size_t SS_SIMPLE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays a single line of text flush-left in the rectangle. The line of text cannot be shortened or altered in any way. (The control's parent window or dialog box must not process the WM_CTLCOLOR message.)

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_LEFTNOWORDWRAP

constexpr size_t SS_LEFTNOWORDWRAP
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays the given text flush-left in the rectangle. Tabs are expanded, but words are not wrapped. Text that extends past the end of a line is clipped.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_OWNERDRAW

constexpr size_t SS_OWNERDRAW
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies that the owner of the static control is responsible for drawing the control. The owner window receives a WM_DRAWITEM message whenever the control needs to be drawn.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_BITMAP

constexpr size_t SS_BITMAP
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a bitmap is to be displayed in the static control. The given text is the name of a bitmap (not a filename) defined elsewhere in the resource file. The style ignores the nWidth and nHeight parameters; the control automatically sizes itself to accommodate the bitmap.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_ENHMETAFILE

constexpr size_t SS_ENHMETAFILE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies an enhanced metafile is to be displayed in the static control. The given text is the name of a metafile. An enhanced metafile static control has a fixed size; the metafile is scaled to fit the static control's client area.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_ETCHEDHORZ

constexpr size_t SS_ETCHEDHORZ
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Draws the top and bottom edges of the static control using the EDGE_ETCHED edge style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_ETCHEDVERT

constexpr size_t SS_ETCHEDVERT
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Draws the left and right edges of the static control using the EDGE_ETCHED edge style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_ETCHEDFRAME

constexpr size_t SS_ETCHEDFRAME
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Draws the frame of the static control using the EDGE_ETCHED edge style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_TYPEMASK

constexpr size_t SS_TYPEMASK
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

A composite style bit that results from using the OR operator on SS_* style bits. Can be used to mask out valid SS_* bits from a given bitmask. Note that this is out of date and does not correctly include all valid styles. Thus, you should not use this style.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_REALSIZECONTROL

constexpr size_t SS_REALSIZECONTROL
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Adjusts the bitmap to fit the size of the static control. For example, changing the locale can change the system font, and thus controls might be resized. If a static control had a bitmap, the bitmap would no longer fit the control. This style bit dictates automatic redimensioning of bitmaps to fit their controls.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_NOPREFIX

constexpr size_t SS_NOPREFIX
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Unless this style is specified, Windows will interpret any ampersand (&) characters in the control's text to be accelerator prefix characters. In this case, the ampersand is removed and the next character in the string is underlined. If a static control is to contain text where this feature is not wanted, SS_NOPREFIX may be added. This static-control style may be included with any of the defined static controls. You can combine SS_NOPREFIX with other styles by using the bitwise OR operator. This is most often used when filenames or other strings that may contain an ampersand need to be displayed in a static control in a dialog box.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_NOTIFY

constexpr size_t SS_NOTIFY
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Sends the parent window STN_CLICKED, STN_DBLCLK, STN_DISABLE, and STN_ENABLE notification messages when the user clicks or double-clicks the control.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_CENTERIMAGE

constexpr size_t SS_CENTERIMAGE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies that, if the bitmap or icon is smaller than the client area of the static control, the rest of the client area is filled with the color of the pixel in the top left corner of the bitmap or icon. If the static control contains a single line of text, the text is centered vertically in the client area of the control.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_RIGHTJUST

constexpr size_t SS_RIGHTJUST
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies that the lower right corner of a static control with the SS_BITMAP or SS_ICON style is to remain fixed when the control is resized. Only the top and left sides are adjusted to accommodate a new bitmap or icon.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_REALSIZEIMAGE

constexpr size_t SS_REALSIZEIMAGE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Prevents a static icon or bitmap control (that is, static controls that have the SS_ICON or SS_BITMAP style) from being resized as it is loaded or drawn. If the icon or bitmap is larger than the destination area, the image is clipped.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_SUNKEN

constexpr size_t SS_SUNKEN
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Draws a half-sunken border around a static control.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_EDITCONTROL

constexpr size_t SS_EDITCONTROL
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

The static control duplicates the text-displaying characteristics of a multiline edit control. Specifically, the average character width is calculated in the same manner as with an edit control, and the function does not display a partially visible last line.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_ENDELLIPSIS

constexpr size_t SS_ENDELLIPSIS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

If the end of a string does not fit in the rectangle, it is truncated and ellipses are added. If a word that is not at the end of the string goes beyond the limits of the rectangle, it is truncated without ellipses. Using this style will force the control s text to be on one line with no word wrap. Compare with SS_PATHELLIPSIS and SS_WORDELLIPSIS.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_PATHELLIPSIS

constexpr size_t SS_PATHELLIPSIS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Replaces characters in the middle of the string with ellipses so that the result fits in the specified rectangle. If the string contains backslash () characters, SS_PATHELLIPSIS preserves as much as possible of the text after the last backslash. Using this style will force the control s text to be on one line with no word wrap. Compare with SS_ENDELLIPSIS and SS_WORDELLIPSIS.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_WORDELLIPSIS

constexpr size_t SS_WORDELLIPSIS
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Truncates any word that does not fit in the rectangle and adds ellipses. Using this style will force the control s text to be on one line with no word wrap.

Library
xtd.forms.native
Remarks
For more info see https://docs.microsoft.com .
Warning
Internal use only

◆ SS_TOP

constexpr size_t SS_TOP
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays the given text flush-top in the rectangle.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SS_VCENTER

constexpr size_t SS_VCENTER
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays the given text vertical centered in the rectangle.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SS_BOTTOM

constexpr size_t SS_BOTTOM
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Designates a simple rectangle and displays the given text flush-bottom in the rectangle.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SS_BITMAP_NORMAL

constexpr size_t SS_BITMAP_NORMAL
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a normal bitmap is to be displayed in the static control.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SS_BITMAP_STRETCH

constexpr size_t SS_BITMAP_STRETCH
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a stretched bitmap is to be displayed in the static control.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SS_BITMAP_AUTOSIZE

constexpr size_t SS_BITMAP_AUTOSIZE
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies an auto-sized bitmap to be displayed in the static control.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SS_BITMAP_CENTER

constexpr size_t SS_BITMAP_CENTER
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a centered bitmap is to be displayed in the static control.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only

◆ SS_BITMAP_ZOOM

constexpr size_t SS_BITMAP_ZOOM
constexpr

#include <xtd.forms.native/include/xtd/forms/native/static_styles.h>

Specifies a zoomed bitmap is to be displayed in the static control.

Library
xtd.forms.native
Remarks
Added specifically for xtd.
Warning
Internal use only