CDialog::DoModal

CDialog::DoModal 是用于创建和显示模式对话框的成员函数,处理用户交互直到对话框关闭。它返回对话框的结束结果,并在用户点击按钮时调用相应的消息处理函数。例如,OnOK 和 OnCancel。点击OK会触发数据验证和更新,而取消则不进行这些操作。EndDialog 用于关闭对话框,模式对话框中常用于传递结果,而非模式对话框则使用 DestroyWindow。
摘要由CSDN通过智能技术生成

CDialog::DoModal

Call this member function toinvoke the modal dialog box and return the dialog-box result when done.

访问这个成员函数来调用模式对话框,调用完成后返回对话框结果

virtual INT_PTR DoModal( );

Return Value


An intvalue that specifies the value of the nResult parameter that was passedto the CDialog::EndDialog member function,which is used to close the dialog box. The return value is –1 if the functioncould not create the dialog box, or IDABORT if some other erroroccurred, in which case the Output window will contain errorinformation from

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值