ON_MESSAGE macro doesn't make sense in non-CWnd derived classes
来源:互联网 发布:五轴编程月薪多少 编辑:程序博客网 时间:2024/04/29 16:09
看msdn,突然看到这样一句话,why?
#define ON_MESSAGE(message, memberFxn) /
{ message, 0, 0, 0, AfxSig_lwl, /
(AFX_PMSG)(AFX_PMSGW)(LRESULT (AFX_MSG_CALL CWnd::*)(WPARAM, LPARAM))&memberFxn },
其中的指针,memberFxn,必须是指向CWnd类成员函数的指针
所以,就不要对CDocument之类的非CWnd类SendMessage(WM_USER+n)了。
- ON_MESSAGE macro doesn't make sense in non-CWnd derived classes
- Warning: calling DestroyWindow in CWnd::~CWnd OnDestroy or PostNcDestroy in derived class will not be called
- 解决 Warning: calling DestroyWindow in CWnd::~CWnd OnDestroy or PostNcDestroy in derived class will n
- Why "Do not call CWnd::OnPaint() for painting messages" in a derived CWnd?
- 解决 Warning: calling DestroyWindow in CWnd::~CWnd OnDestroy or PostNcDestroy in derived class will not be called
- 编译forms程序报错,internal_impl_21.0.3.jar doesn't exist|classes.jar doesn't exist
- Xcode code sense and cmd+click to symbol doesn't work for 1 of my projects
- Description of CWnd derived MFC objects and multithreaded applications in Visual C++
- 《Description of CWnd derived MFC objects and multithreaded applications in Visual C++》译文
- Ant task doesn't work in Eclipse
- UITextView in iOS7 doesn't scroll
- background-size doesn't work in IE8
- User doesn't sign in. leancloud
- What doesn't kill you make you stronger
- C++ 派生类Derived Classes
- 第20章:Derived Classes
- 第20章:Derived Classes
- Defining Base and Derived Classes
- C# 编程规范(1)
- 一年半多没献血了
- 攒机需要注意的8条技巧 转太平洋网
- 工作来的第一次加班
- 看bt影片
- ON_MESSAGE macro doesn't make sense in non-CWnd derived classes
- I come back.
- C#.NET编程规范(2)
- 基于Google的学习过程(转贴)
- 无题目
- 周杰伦《11月的萧邦》夜曲歌词
- 研究生之歌
- CVS pserver服务器配置(RH9)
- 《面向对象程序设计与VC++实现》--第一章:例题代码