class CMyStatic : public CStatic
{
// Construction
public:
CMyStatic();// Attributes
public:// Operations
public:// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyStatic)
//}}AFX_VIRTUAL// Implementation
public:
virtual ~CMyStatic(); // Generated message map functions
protected:
//{{AFX_MSG(CMyStatic)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG DECLARE_MESSAGE_MAP()
};
1、// Attributes、// Operations、// Overrides、// Implementation这四个区域,分别指什么?
2、每一个继承mfc的类都有DECLARE_MESSAGE_MAP()吗,为什么?
{
// Construction
public:
CMyStatic();// Attributes
public:// Operations
public:// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyStatic)
//}}AFX_VIRTUAL// Implementation
public:
virtual ~CMyStatic(); // Generated message map functions
protected:
//{{AFX_MSG(CMyStatic)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG DECLARE_MESSAGE_MAP()
};
1、// Attributes、// Operations、// Overrides、// Implementation这四个区域,分别指什么?
2、每一个继承mfc的类都有DECLARE_MESSAGE_MAP()吗,为什么?
解决方案 »
- the application was unable to start correctly 0xc00007b
- 基于dvd navigator的dshow图表,如何获取DVD所有视频流的总长度?
- 用VC+DOM怎样创建和Excel关联的xml文件(代码实现)?
- 自定义函数问题!
- 谁能告诉我对话框编辑器里的custom control是怎么用的
- this 指针问题:)
- 如何改写系统时间?使用哪个函数比较好?
- 如何定义一个动态分配内存的全局变量?
- 我用 VC的 dbreadtext()读取 SQL Server 中的 TEXT/IMAGE 字段,但是。。。?
- 谁有Advanced c++ programming Style and Idioms (James Copliens)
- 在win中创建线程有没有上限啊,我在比较服务器的实现方案
- 怎样在一个自定义的类里面添加Timer定时器?最好有源代码!
学点英语没有坏处:属性、操作(方法)、重载、声明,这些是注释,对程序没有作用。2、每一个继承mfc的类都有DECLARE_MESSAGE_MAP()吗,为什么?
不一定,只有有消息循环的类才需要。比如CDocument就没有。
2. 如果你的派生类不需要消息循环, 可以不要DECLARE_MESSAGE_MAP(),
事实上控件没有不要消息循环的.