| Constant |
Description |
| Ss_bitmap |
Display a bitmap (. BMP), the control text (text) specifies a bitmap file (non-file name) contained in the resource, this style ignores the width and height of the control, the widget automatically adjusts the size to adapt to the bitmap. |
| Ss_icon |
Display an icon (. ICO). The text of the control specifies an icon file (not a file name) contained in the resource. This style ignores the width and height of the control, the widget automatically adjusts the size to adapt to the icon. |
| Ss_enhmetafile |
Display an Enhanced Metafile (. EMF) in the static control ). The text of the control specifies the object name. The widget size remains unchanged, and the Metafile is scaled proportionally in the control client area. |
| Ss_blackframe |
Draw a border with the window border color (black by default) of the system color group, and use the same color (transparent) as the bottom form in the box ). |
| Ss_blackrect |
Draws a rectangle solid control with the window border color (black by default) of the system color group. |
| Ss_grayframe |
Draw a border with the screen background color of the system color group, and use the same color (transparent) as the bottom form in the box ). |
| Ss_grayrect |
Draws a rectangle solid control with the screen background color of the system color group. |
| Ss_whiteframe |
Draw a border with the background color (white by default) of the system color group, and use the same color (transparent) as the bottom form in the box ). |
| Ss_whiterect |
Draws a rectangle solid control with the background color (white by default) of the system color group window. |
| Ss_etchedframe |
Draw a border with a concave 3D line, and use the same color (transparent) as the bottom form in the box ). |
| Ss_etchedhorz |
Draw the upper and lower sides of the control using a concave 3D line, and use the same color (transparent) as the bottom form in the box ). |
| Ss_etchedvert |
Draw the left and right sides of the control using a concave 3D line, and use the same color (transparent) as the bottom form in the box ). |
| Ss_rightjust |
In combination with ss_bitmap or ss_icon, when the control size needs to be adjusted automatically, the lower right corner of the control is taken as the benchmark, and only the top and left positions of the control change. |
| Ss_noprefix |
It is not allowed to interpret the character "&". Generally, the character "&" is interpreted as adding a line to the next character, and "&" is interpreted as a character "&". you can use ss_noprefix to disable this interpretation. |
| Ss_policy |
When the control is clicked or double-clicked by the user, the stn_clicked, stn_dblclk, stn_disable, or stn_enable notification message is sent to the parent window. |
| Ss_ownerdraw |
The custom static control. When the control needs to be re-painted, the parent window receives the wm_drawitem message. |
| Ss_realsizeimage |
Do not adjust the widget size automatically based on the bitmap Or Icon size. If this constant is set, the excess part of the widget is truncated. |
| Ss_sunken |
Draw a sinking control. |
| Ss_center |
The text is horizontally centered. Text is formatted before being displayed. If the control width is exceeded, the text is automatically wrapped. |
| Ss_centerimage |
The text is vertically centered. This constant also sets that when the bitmap or icon is smaller than the control's customer zone, the color of the top left corner of the image is used to fill the control edge. |
| Ss_left |
The text is displayed on the left. Before the text is displayed, the text is formatted. If the control width is exceeded, the text is automatically wrapped. |
| Ss_leftnowordwrap |
The text is displayed on the left. When the control width is exceeded, the text is truncated and no line breaks are automatically processed. |
| Ss_right |
The text is displayed on the right. Before the text is displayed, the text is formatted. If the control width is exceeded, the text is automatically wrapped. |
| Ss_simple |
The text is displayed in a single line in the upper left corner of the control, without line breaks. The parent window process cannot process the wm_ctlcolorstatic message. |