Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 )

nMessageVariable

The registered window-message ID variable.

memberFxn

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

This macro indicates which function will handle the registered message.

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

Example

static UINT NEAR WM_FIND = RegisterWindowMessage(_T("COMMDLG_FIND"));
BEGIN_MESSAGE_MAP(CMyWnd3, CWnd)
   ON_REGISTERED_MESSAGE(WM_FIND, OnFind)
END_MESSAGE_MAP()

Requirements

Header: afxmsg_.h

Show: