ON_REGISTERED_MESSAGE( nMessageVariable, memberFxn )
Parameters
nMessageVariable
The registered window-message ID variable.
memberFxn
The name of the message-handler function to which the message is mapped.
Remarks
The Windows RegisterWindowMessage function is used to define a new window message that is guaranteed to be unique throughout the system. This macro indicates which function will handle the registered message.
For more information and examples, see Message Handling and Mapping Topics in Visual C++ Programmer’s Guide.
Example
// example for ON_REGISTERED_MESSAGE
const UINT wm_Find = RegisterWindowMessage( FINDMSGSTRING )
BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass )
//{{AFX_MSG_MAP( CMyWnd )
ON_REGISTERED_MESSAGE( wm_Find, OnFind )
// ... Possibly more entries to handle additional messages
//}}AFX_MSG_MAP
END_MESSAGE_MAP( )
See Also ON_MESSAGE, ON_UPDATE_COMMAND_UI, ON_CONTROL, ON_COMMAND, ::RegisterWindowMessage, User-Defined Handlers