最近心情不是很好 还是埋头到不会欺负我的代码还有c++里面来吧
刚开始学mfc 很多东西不是很明白 闲来无事 抄一段代码进来 慢慢来吧
# ifdef _ADXDLL
#define DECLARE_MESSAGE_MAP() /
private: /
static const AFX_MESSAGE_ENTRY _messageEntries[]; / 静态全局变量定义 OMG 我差点以为这里是一个参数了 悲剧 最基础的知识
protected: /
static AFX_DATA const AFX_MSGMAP messageMap; /
static const AFX_MSGMAP* PASCAL _GetBaseMessageeMap();/
virtual const AFX_MSGMAP* GetMessageMap () const; /
#else
#define DECLARE_MESSAGE_MAP()
private:/
static const AFX_MSGMAP_ENTRY _messageEntries[];/
protected:/
static AFX_DATA const AFX_MSGMAP messageMap;/
virtual const AFX_MSGMAP* GetMessageMap() const;/
#endif
DECLARE_MESSAGE_MAP宏内容
分别用于静态和动态链接到 mfc dll。