091024(星期六)CDialog和CWinApp的msdn描述

CDialog是用于显示对话框的基类,分为模态和非模态两种。CDialog对象结合了对话框模板和派生类,通过消息映射处理控件的通知消息。CWinApp是Windows应用程序对象的基类,用于初始化和运行应用。通过InitInstance创建主窗口,全局函数如AfxGetApp可以获取CWinApp对象。
摘要由CSDN通过智能技术生成

先看看msdn上对CDialog的描述。

class CDialog : public CWnd

Remarks

The CDialog class is the base class used for displaying dialog boxes on the screen. Dialog boxes are of two types: modal and modeless. A modal dialog box must be closed by the user before the application continues. A modeless dialog box allows the user to display the dialog box and return to another task without canceling or removing the dialog box.模态和非模态。

A CDialog object is a combination of a dialog template and a CDialog-derived class. Use the dialog editor to create the dialog template and store it in a resource, then use the Add Class wizard to create a class derived from CDialog.

A dialog box, like any other window, receives messages from Windows. In a dialog box, you are particularly interested in handling notification messages from the dialog box's controls since that is how the user interacts with your dialog box对于对话框来说,来自其子控件通知消息的处理尤其关键,因为控件是用户最直接的交互对象. Use the Properties window to select which messages you wish to handle and it will add the appropriate message-map entries and message-handler member functions to the class for you. You only ne

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值