xtd 0.2.0
Loading...
Searching...
No Matches
static_styles.h
Go to the documentation of this file.
1
4#pragma once
6#if !defined(__XTD_FORMS_NATIVE_LIBRARY__)
7#error "Do not include this file: Internal use only"
8#endif
10
11#include <cstddef>
12
13// https://docs.microsoft.com/en-us/cpp/mfc/reference/styles-used-by-mfc
14
15#if !defined(SS_LEFT)
22constexpr size_t SS_LEFT = 0x00000000;
29constexpr size_t SS_CENTER = 0x00000001;
36constexpr size_t SS_RIGHT = 0x00000002;
43constexpr size_t SS_ICON = 0x00000003;
50constexpr size_t SS_BLACKRECT = 0x00000004;
57constexpr size_t SS_GRAYRECT = 0x00000005;
64constexpr size_t SS_WHITERECT = 0x00000006;
71constexpr size_t SS_BLACKFRAME = 0x00000007;
78constexpr size_t SS_GRAYFRAME = 0x00000008;
85constexpr size_t SS_WHITEFRAME = 0x00000009;
92constexpr size_t SS_USERITEM = 0x0000000A;
99constexpr size_t SS_SIMPLE = 0x0000000B;
106constexpr size_t SS_LEFTNOWORDWRAP = 0x0000000C;
113constexpr size_t SS_OWNERDRAW = 0x0000000D;
120constexpr size_t SS_BITMAP = 0x0000000E;
127constexpr size_t SS_ENHMETAFILE = 0x0000000F;
134constexpr size_t SS_ETCHEDHORZ = 0x00000010;
141constexpr size_t SS_ETCHEDVERT = 0x00000011;
148constexpr size_t SS_ETCHEDFRAME = 0x00000012;
155constexpr size_t SS_TYPEMASK = 0x0000001F;
162constexpr size_t SS_REALSIZECONTROL = 0x00000040;
169constexpr size_t SS_NOPREFIX = 0x00000080; // Don't do "&" character translation
176constexpr size_t SS_NOTIFY = 0x00000100;
183constexpr size_t SS_CENTERIMAGE = 0x00000200;
190constexpr size_t SS_RIGHTJUST = 0x00000400;
197constexpr size_t SS_REALSIZEIMAGE = 0x00000800;
204constexpr size_t SS_SUNKEN = 0x00001000;
211constexpr size_t SS_EDITCONTROL = 0x00002000;
218constexpr size_t SS_ENDELLIPSIS = 0x00004000;
225constexpr size_t SS_PATHELLIPSIS = 0x00008000;
232constexpr size_t SS_WORDELLIPSIS = 0x0000C000;
234constexpr size_t SS_ELLIPSISMASK = 0x0000C000;
236#endif
243constexpr size_t SS_TOP = 0x00000000;
250constexpr size_t SS_VCENTER = 0x00010000;
257constexpr size_t SS_BOTTOM = 0x00020000;
264constexpr size_t SS_BITMAP_NORMAL = 0x00000000;
271constexpr size_t SS_BITMAP_STRETCH = 0x00040000;
278constexpr size_t SS_BITMAP_AUTOSIZE = 0x00080000;
285constexpr size_t SS_BITMAP_CENTER = 0x000C0000;
292constexpr size_t SS_BITMAP_ZOOM = 0x00100000;
constexpr size_t SS_ETCHEDHORZ
Draws the top and bottom edges of the static control using the EDGE_ETCHED edge style.
Definition static_styles.h:134
constexpr size_t SS_ENHMETAFILE
Specifies an enhanced metafile is to be displayed in the static control. The given text is the name o...
Definition static_styles.h:127
constexpr size_t SS_BITMAP_STRETCH
Specifies a stretched bitmap is to be displayed in the static control.
Definition static_styles.h:271
constexpr size_t SS_BITMAP_NORMAL
Specifies a normal bitmap is to be displayed in the static control.
Definition static_styles.h:264
constexpr size_t SS_SUNKEN
Draws a half-sunken border around a static control.
Definition static_styles.h:204
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 (...
Definition static_styles.h:120
constexpr size_t SS_CENTER
Designates a simple rectangle and displays the given text centered in the rectangle....
Definition static_styles.h:29
constexpr size_t SS_BLACKFRAME
Specifies a box with a frame drawn with the same color as window frames. The default is black.
Definition static_styles.h:71
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 r...
Definition static_styles.h:190
constexpr size_t SS_PATHELLIPSIS
Replaces characters in the middle of the string with ellipses so that the result fits in the specifie...
Definition static_styles.h:225
constexpr size_t SS_ENDELLIPSIS
If the end of a string does not fit in the rectangle, it is truncated and ellipses are added....
Definition static_styles.h:218
constexpr size_t SS_GRAYRECT
Specifies a rectangle filled with the color used to fill the screen background. The default is gray.
Definition static_styles.h:57
constexpr size_t SS_BOTTOM
Designates a simple rectangle and displays the given text flush-bottom in the rectangle.
Definition static_styles.h:257
constexpr size_t SS_TOP
Designates a simple rectangle and displays the given text flush-top in the rectangle.
Definition static_styles.h:243
constexpr size_t SS_BLACKRECT
Specifies a rectangle filled with the color used to draw window frames. The default is black.
Definition static_styles.h:50
constexpr size_t SS_REALSIZECONTROL
Adjusts the bitmap to fit the size of the static control. For example, changing the locale can change...
Definition static_styles.h:162
constexpr size_t SS_BITMAP_AUTOSIZE
Specifies an auto-sized bitmap to be displayed in the static control.
Definition static_styles.h:278
constexpr size_t SS_LEFT
Designates a simple rectangle and displays the given text flush-left in the rectangle....
Definition static_styles.h:22
constexpr size_t SS_WORDELLIPSIS
Truncates any word that does not fit in the rectangle and adds ellipses. Using this style will force ...
Definition static_styles.h:232
constexpr size_t SS_NOPREFIX
Unless this style is specified, Windows will interpret any ampersand (&) characters in the control's ...
Definition static_styles.h:169
constexpr size_t SS_OWNERDRAW
Specifies that the owner of the static control is responsible for drawing the control....
Definition static_styles.h:113
constexpr size_t SS_BITMAP_CENTER
Specifies a centered bitmap is to be displayed in the static control.
Definition static_styles.h:285
constexpr size_t SS_LEFTNOWORDWRAP
Designates a simple rectangle and displays the given text flush-left in the rectangle....
Definition static_styles.h:106
constexpr size_t SS_WHITEFRAME
Specifies a box with a frame drawn with the same color as the window background. The default is white...
Definition static_styles.h:85
constexpr size_t SS_ETCHEDVERT
Draws the left and right edges of the static control using the EDGE_ETCHED edge style.
Definition static_styles.h:141
constexpr size_t SS_EDITCONTROL
The static control duplicates the text-displaying characteristics of a multiline edit control....
Definition static_styles.h:211
constexpr size_t SS_WHITERECT
Specifies a rectangle filled with the color used to fill the window background. The default is white.
Definition static_styles.h:64
constexpr size_t SS_RIGHT
Designates a simple rectangle and displays the given text flush-right in the rectangle....
Definition static_styles.h:36
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...
Definition static_styles.h:43
constexpr size_t SS_NOTIFY
Sends the parent window STN_CLICKED, STN_DBLCLK, STN_DISABLE, and STN_ENABLE notification messages wh...
Definition static_styles.h:176
constexpr size_t SS_ETCHEDFRAME
Draws the frame of the static control using the EDGE_ETCHED edge style.
Definition static_styles.h:148
constexpr size_t SS_BITMAP_ZOOM
Specifies a zoomed bitmap is to be displayed in the static control.
Definition static_styles.h:292
constexpr size_t SS_REALSIZEIMAGE
Prevents a static icon or bitmap control (that is, static controls that have the SS_ICON or SS_BITMAP...
Definition static_styles.h:197
constexpr size_t SS_USERITEM
Specifies a user-defined item.
Definition static_styles.h:92
constexpr size_t SS_SIMPLE
Designates a simple rectangle and displays a single line of text flush-left in the rectangle....
Definition static_styles.h:99
constexpr size_t SS_GRAYFRAME
Specifies a box with a frame drawn with the same color as the screen background (desktop)....
Definition static_styles.h:78
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...
Definition static_styles.h:155
constexpr size_t SS_CENTERIMAGE
Specifies that, if the bitmap or icon is smaller than the client area of the static control,...
Definition static_styles.h:183
constexpr size_t SS_VCENTER
Designates a simple rectangle and displays the given text vertical centered in the rectangle.
Definition static_styles.h:250