共用方式為


NOTIFY_CODE_HANDLER

Similar to NOTIFY_HANDLER, but maps a WM_NOTIFY message based only on the notification code.

NOTIFY_CODE_HANDLER( 
   cd, 
   func  
)

Parameters

  • cd
    [in] The notification code.

  • func
    [in] The name of the message-handler function.

Requirements

Header: atlwin.h

See Also

Reference

NOTIFY_ID_HANDLER

REFLECTED_NOTIFY_CODE_HANDLER

NOTIFY_RANGE_HANDLER

COMMAND_CODE_HANDLER

MESSAGE_HANDLER

Other Resources

Message Map Macros (ATL)

ATL Macros