Export (0) Print
Expand All
TRY
Expand Minimize
This topic has not yet been rated - Rate this topic

ON_REGISTERED_MESSAGE

The Windows RegisterWindowMessage function is used to define a new window message that is guaranteed to be unique throughout the system.

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

This macro indicates which function will handle the registered message.

For more information and examples, see Message Handling and Mapping Topics.

Example

// example for ON_REGISTERED_MESSAGE
const UINT    wm_Find = RegisterWindowMessage( FINDMSGSTRING );
BEGIN_MESSAGE_MAP( CMyWnd, CMyParentWndClass )
    ON_REGISTERED_MESSAGE( wm_Find, OnFind )
    // ... Possibly more entries to handle additional messages
END_MESSAGE_MAP( )

See Also

MFC Macros and Globals | ON_MESSAGE | ON_UPDATE_COMMAND_UI | ON_CONTROL | ON_COMMAND | RegisterWindowMessage | User-Defined Handlers

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.