MFC消息映射的定义
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
BEGIN_MESSAGE_MAP( theClass, baseClass )
Parameters
theClass
Specifies the name of the class whose message map this is.
baseClass
Specifies the name of the base class of theClass.
Remarks:
Use the BEGIN_MESSAGE_MAP macro to begin the definition of your message map.
使用 BEGIN_MESSAGE_MAP宏來(lái)開(kāi)始你的消息映射的定義。
In the implementation (.CPP) file that defines the member functions for your class, start the message map with the BEGIN_MESSAGE_MAP macro, then add macro entries for each of your message-handler functions, and complete the message map with the END_MESSAGE_MAP macro.
(.cpp文件)中定義了類(lèi)的成員函數(shù)的實(shí)現(xiàn)文件,用 BEGIN_MESSAGE_MAP 宏開(kāi)始消息映射,然后為每一個(gè)消息句柄函數(shù)添加宏變量,用 END_MESSAGE_MAP宏完成消息映射。
Example
轉(zhuǎn)載于:https://my.oschina.net/ajian2014/blog/280268
總結(jié)
以上是生活随笔為你收集整理的MFC消息映射的定义的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: T4文本模板转换过程
- 下一篇: spfa 判断负环 (转载)