MFC消息映射的定义
2019獨角獸企業重金招聘Python工程師標準>>>
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宏來開始你的消息映射的定義。
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文件)中定義了類的成員函數的實現文件,用 BEGIN_MESSAGE_MAP 宏開始消息映射,然后為每一個消息句柄函數添加宏變量,用 END_MESSAGE_MAP宏完成消息映射。
Example
轉載于:https://my.oschina.net/ajian2014/blog/280268
總結
以上是生活随笔為你收集整理的MFC消息映射的定义的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: T4文本模板转换过程
- 下一篇: spfa 判断负环 (转载)