网上闲逛,发现一个关于GroupBox的咚咚,好玩~
以下摘录值 // http://www.functionx.com/visualc/controls/groupbox.htm
Properties of a Group Box
|
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:
Of course, it is up to you to implement the behavior of controls inside or outside the group box.
Group Box Messages |
If you plan to send message from the group box itself (not the controls inside of it), check the Notify check box or set it to True. This is equivalent to adding the SS_NOTIFY style when dynamically creating the button.
Articles implementing a Group Box control: