Visual C++ and MFC Fundamentals Chapter 15: Fundamental Controls
Colored border:
You can surround
the borders of the
control with a
black, a gray or a
white color.
During design,
specify the Type
as Frame and set
the color
accordingly using
the Color combo
box. These
characteristics are
set as
SS_BLACKFRA
ME,
SS_GRAYFRAM
E, and
SS_WHITEFRA
ME respectively.
(^)
The control is
filled with either a
black, a gray, or a
white color. These
characteristics are
based on the
SS_BLACKRECT,
SS_GRAYRECT,
and
SS_WHITERECT
values
respectively. At
design time, set the
Type combo box to
Rectangle and
select one of these
colors in the Color
combo box.
A static control can also be used
to display a bitmap. To make this
possible, at design time, set the
Type to Bitmap and, in the Image
combo box, select a bitmap.
These properties are controlled
through the SS_ICON or
SS_BITMAP
(^)
If you want to manipulate the properties of a static control, you should change its
identifier from IDC_STATIC to a more meaningful name.