从CWinThread派生类,消息映射用ON_THREAD_MESSAGEON_THREAD_MESSAGE Indicates which function will handle a user-defined message. ON_THREAD_MESSAGE(message, memberFxn )
Parameters message The message ID.memberFxn The name of the CWinThread-message-handler function to which the message is mapped.Res
ON_THREAD_MESSAGE(message, memberFxn )
Parameters
message
The message ID.memberFxn
The name of the CWinThread-message-handler function to which the message is mapped.Res
还是不能收到消息。只能在消息循环中判断呀!
就是我一开始没有自己建立消息循环,用ON_THREAD_MESSAGE还是不行,收不到消息。
建立消息队列的代吗?
消息队列放到哪个函数里?是放在InitInstance函数里吗?
谢谢!
自己去大概跟一跟mfc源码就明白了。