다음을 통해 공유


ON_CONTROL

Indicates which function will handle a custom-control notification message.

ON_CONTROL(wNotifyCode, id, memberFxn )

매개 변수

  • wNotifyCode
    The notification code of the control.

  • id
    명령 ID입니다.

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

설명

Control notification messages are those sent from a control to its parent window.

There should be exactly one ON_CONTROL macro statement in your message map for every control notification message that must be mapped to a message-handler function.

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

요구 사항

Header: afxmsg_.h

참고 항목

참조

ON_MESSAGE

ON_REGISTERED_MESSAGE

개념

MFC 매크로 및 전역