Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

ON_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.

ON_THREAD_MESSAGE must be used instead of ON_MESSAGE when you have a CWinThread class. User-defined messages are any messages that are not standard Windows WM_MESSAGE messages. There should be exactly one ON_THREAD_MESSAGE macro statement in your message map for every user-defined message that must be mapped to a message-handler function.

Community Additions

ADD
Show:
© 2015 Microsoft