다음을 통해 공유


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.

예제

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

요구 사항

Header: afxmsg_.h

참고 항목

참조

ON_MESSAGE

ON_UPDATE_COMMAND_UI

ON_CONTROL

ON_COMMAND

RegisterWindowMessage

사용자 정의 처리기

개념

MFC 매크로 및 전역