|
The most
significant property of a group box is probably the text it is displaying.
This is set using the Caption field. If you are programmatically creating
the control, the first argument of the CStatic::Create() method allows you
to set its caption. At run time, to change this text, call the CWnd::SetWindowText() method. The text of a group box
can be aligned to the left, the center, or the right sides of its
allocated rectangle. This is specified at design time using the Horizontal
Alignment combo box. Instead of
using its own caption, you may want to display a check box that would
validate or invalidate the content of the group box. To do this, after
adding the group box, delete its caption. Then add a Check Box control
where the caption was:
|