declaim a message handler then difine this message handler as you like and finally, add a message macro into the message map like AppWizard have done ! more detail in MSDN
“消息反射”可这样: #define MSG_EXAMPLE WM_USER + 1 ; 在想作消息映射的类中 Begin Message.... ON_MESSAGE(MSG_EXAMPLE, 想触发的函数体) End Message...; 在想触发这个消息时: 消息定义类的句柄->SendMessage(MSG_EXAMPLE) ;
ok搞定,噢别忘记写相应的函数体!
“消息反射”可这样: #define MSG_EXAMPLE WM_USER + 1 ; 在想作消息映射的类中 Begin Message.... ON_MESSAGE(MSG_EXAMPLE, 想触发的函数体) End Message...; 在想触发这个消息时: 消息定义类的句柄->SendMessage(MSG_EXAMPLE) ;
finally, add a message macro into the message map like AppWizard have done !
more detail in MSDN
#define MSG_EXAMPLE WM_USER + 1 ;
在想作消息映射的类中
Begin Message....
ON_MESSAGE(MSG_EXAMPLE, 想触发的函数体)
End Message...; 在想触发这个消息时:
消息定义类的句柄->SendMessage(MSG_EXAMPLE) ;
ok搞定,噢别忘记写相应的函数体!
#define MSG_EXAMPLE WM_USER + 1 ;
在想作消息映射的类中
Begin Message....
ON_MESSAGE(MSG_EXAMPLE, 想触发的函数体)
End Message...; 在想触发这个消息时:
消息定义类的句柄->SendMessage(MSG_EXAMPLE) ;
ok搞定,噢别忘记写相应的函数体!
[email protected]