A static control has style bits that determine whether the control displays text, draws a simple box containing text, displays an icon or a bit map, or shows a framed or unframed colored box. Applications can specify a combination of the following styles for a static control:
┌────────────────────┬────────────────────────────────────────┐ │Style Name │Description │ ├────────────────────┼────────────────────────────────────────┤ │SS_BITMAP │Draws a bit map. The bit map resource │ │ │must be provided in the │ │ │resource-definition file. To include the│ │ │bit map in a dialog window, the resource│ │ │identifier must be specified in the text│ │ │parameter of the CONTROL statement in │ │ │the resource definition file. To include│ │ │the bit map in a non-dialog window, the │ │ │ASCII representation of the identifier │ │ │must be specified in the pszName │ │ │parameter of WinCreateWindow, that is, │ │ │the first byte of the pszName parameter │ │ │must be the cross-hatch character (#), │ │ │and the remaining text must be the ASCII│ │ │representation of the identifier, for │ │ │example, #125. │ ├────────────────────┼────────────────────────────────────────┤ │SS_BKGNDFRAME │Creates a box whose frame has the │ │ │background color. │ ├────────────────────┼────────────────────────────────────────┤ │SS_BKGNDRECT │Creates a rectangle filled with the │ │ │background color. │ ├────────────────────┼────────────────────────────────────────┤ │SS_FGNDFRAME │Creates a box whose frame has the │ │ │foreground color. │ ├────────────────────┼────────────────────────────────────────┤ │SS_FGNDRECT │Creates a rectangle filled with the │ │ │foreground color. │ ├────────────────────┼────────────────────────────────────────┤ │SS_GROUPBOX │Creates a box whose upper-right corner │ │ │contains control text. This style is │ │ │useful for enclosing groups of radio │ │ │buttons or check boxes in a box. │ ├────────────────────┼────────────────────────────────────────┤ │SS_HALFTONEFRAME │Creates a box whose frame has halftone │ │ │shading. │ ├────────────────────┼────────────────────────────────────────┤ │SS_HALFTONERECT │Creates a box filled with halftone │ │ │shading. │ ├────────────────────┼────────────────────────────────────────┤ │SS_ICON │Draws an icon. The resource identifier │ │ │for the icon resource is determined the │ │ │same way as the SS_BITMAP style. The │ │ │icon resource must be in the │ │ │resource-definition file. │ ├────────────────────┼────────────────────────────────────────┤ │SS_SYSICON │Draws a system-pointer icon. The │ │ │resource identifier for the │ │ │system-pointer resource is determined │ │ │the same way as the SS_BITMAP style. To │ │ │display this system pointer, the system │ │ │calls WinQuerySysPointer with the │ │ │specified identifier. │ ├────────────────────┼────────────────────────────────────────┤ │SS_TEXT │Creates a box with formatted text. An │ │ │application can combine various │ │ │formatting options with this style to │ │ │produce formatted text in the boundaries│ │ │of the control. The formatting flags are│ │ │the same as those used for WinDrawText. │ └────────────────────┴────────────────────────────────────────┘