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

ON_REGISTERED_THREAD_MESSAGE

Indicates which function will handle the message registered by the Windows RegisterWindowMessage function.

ON_REGISTERED_THREAD_MESSAGE(nMessageVariable, memberFxn )

nMessageVariable

The registered window-message ID variable.

memberFxn

The name of the CWinThread-message-handler function to which the message is mapped.

RegisterWindowMessage is used to define a new window message that is guaranteed to be unique throughout the system. ON_REGISTERED_THREAD_MESSAGE must be used instead of ON_REGISTERED_MESSAGE when you have a CWinThread class.

Header: afxmsg_.h

Community Additions

ADD
Show:
© 2015 Microsoft