This structure contains display (static) styles. The following enumerators are defined within the scope of the structure display_style.
left | The text is left justified and displayed within a rectangle. When displayed, the text is formatted such that words that extend beyond the end of line are wrapped to the beginning of the next left justified line. |
center | The text is centered and displayed within a rectangle. The text is formatted such that words that extend beyond the end of a line are wrapped to the beginning of the next centered line. |
right | The text is right justified and displayed within a rectangle. The text is formatted such that words that extend beyond the end of a line are wrapped to the beginning of the next right justified line. |
icon | The display field contains an icon. The text specified for the display names an icon resource. The icon can be an animated cursor. The control ignores the specified width and height, and sizes itself to accommodate the icon. |
rectangle_black | The display field is filled using "black" rectangle. |
rectangle_gray | The display field is filled using a "gray" rectangle. |
rectangle_white | The display field is filled using a "white" rectangle. |
frame_black | The display field is surrounded by a "black" frame. |
frame_gray | The display field is surrounded by a "gray" frame. |
frame_white | The display field is surrounded by a "white" frame. |
simple | The text is left aligned and displayed in a rectangle. The text line is not altered in any way. The parent or owner should not process the message message::color_display. |
left_no_word_wrap | The text is left aligned, without being part wrapped. The text is displayed in a rectangle. Any embedded tabulations are expanded. text that extends beyond the end of the line is clipped. |
owner_draw | The control is drawn by the owner window. The owner window is sent the message message::draw_item whenever painting is required. |
bitmap | The static control contains a bitmap. The text of the window names a bitmap resource. The width and height parameters are ignored and the control adjusts its size to accommodate the bitmap. |
metafile | The window is drawn using an enhanced metafile. The text of the window names the enhanced metafile. The metafile is scaled to fit the client area of the display control. |
etched_horizontal | Causes a 3d shadowing effect in the horizontal borders. The edge style edge_type::etched is used to draw the horizontal borders. |
etched_vertical | Causes a 3d shadowing effect in the vertical borders. The edge style edge_type::etched is used to draw the vertical borders. |
etched_frame | Causes a 3d shadowing effect for a frame border. The edge style edge_type::etched is used to draw the horizontal and vertical borders. |
no_prefix | This style prevents ampersand (&) characters embedded within the control's text being interpreted as accelerator prefix characters. When this style is absent, an ampersand is removed and the next character is underlined. this style may be combined with any of the other styles. |
notify | The style causes the parent or owner to be notified when the control is single or double clicked or when it is enabled or disabled. |
center_image | An image is centered within the control. If the bitmap or icon is smaller than the client area of the window, the remaining portion is filled with the color of the pixel found in the top left corner of the image. If the static control contains a single line of text, the text is centered vertically in the client area of the control. |
right_justify | Right justifies images. |
image_real_size | The image is not scaled within the display. If the control contains an icon or a bitmap it is prevented from being resized. If the image is larger than the destination area, it is clipped. |
sunken | Draws a half sunken border around a static control. |
The styles contain "Black", "Gray" and "White" make use of the system colors as shown below.
Black | system_color::three_d_dark_shadow |
Gray | system_color::button_shadow |
white | system_color::highlighted_button |