Creates a box with formatted text. The text
is formatted before it is displayed according to the setting of these text
drawing-style flags:
DT_LEFT
Left-justified text
DT_CENTER
Centered text
DT_RIGHT
Right-justified text
ORed
with one of:
DT_TOP
Text is aligned to top of window
DT_VCENTER
Text is aligned vertically in center
of window
DT_BOTTOM
Text is aligned to bottom of window
The following text drawing style can also be ORed,
but only if DT_TOP and DT_LEFT are also specified:
DT_WORDBREAK
Text is multi-line with word-wrapping
at ends of lines.
Note: For "static" text
that can be selected, a Button Control with a style of BS_NOBORDER can be
used.
SS_GROUPBOX
A
group box static control is a box that has an identifying text string in
its upper left corner. Group boxes are used to collect a group of radio
buttons or other controls into a single unit.
SS_ICON
Draws an icon. The text of the static control is
a string that is used to derive the resource ID from which the icon is loaded.
The format of the string is:
The first byte is 0xFF, the second byte is the low
byte of the resource ID, and the third byte is the high byte of the resource
ID.
The first character is "#"; subsequent characters
make up the decimal text representation of the resource ID. This format
can be used for specifying a system icon in a resource file. The decimal
string is the value of the appropriate SPTR_* constant
If
the string is empty or does not follow the format above, no resource is
loaded.
The resource is assumed to reside in the resource file of the current process.
This control is resized to the size of the icon.
SS_SYSICON
This style is the same as SS_ICON except that the
icon ID is specified as one of the system pointer ID values (SPTR_* values)
rather than a resource ID. This style provides a convenient way to include
system icons in application dialog boxes.
SS_BITMAP
Draws a bit map. The text of the static control
names the bit-map resource, as for SS_ICON.
SS_FGNDRECT
Creates a rectangle filled with the color of the
foreground.
SS_BKGNDRECT
Creates
a rectangle filled with the color of the background.
SS_FGNDFRAME
Creates a box with frame color equal to the foreground
color.
SS_BKGNDFRAME
Creates
a box with frame color equal to the background color.
SS_HALFTONERECT
Creates a rectangle filled with halftone shading.
SS_HALFTONEFRAME
Creates
a box with halftone shading frame.
SS_AUTOSIZE
The
static control will be sized to make sure the contents fit.