模态与非模态对话框 (Modal and Modeless Dialog Boxes)的区别

Modal and Modeless Dialog Boxes

 

You can use class CDialog to manage two kinds of dialog boxes:

  • Modal dialog boxes, which require the user to respond before continuing the program
  • Modeless dialog boxes, which stay on the screen and are available for use at any time but permit other user activities

The resource editing and ClassWizard procedures for creating a dialog template are the same for modal and modeless dialog boxes.

Creating a dialog box for your program requires the following steps:

  1. Use the dialog editor to design the dialog box and create its dialog-template resource.
  2. Use ClassWizard to create a dialog class.
  3. Use ClassWizard to connect the dialog resource’s controls to message handlers in the dialog class.
  4. Use ClassWizard to add data members associated with the dialog box’s controls and to specify dialog data exchange and dialog data validations for the controls.

See Also   Life Cycle of a Dialog Box

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值