发现一个关于GroupBox的咚咚,好玩~

网上闲逛,发现一个关于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:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值