共用方式為


REFLECTED_COMMAND_HANDLER

Similar to COMMAND_HANDLER, but maps commands reflected from the parent window.

REFLECTED_COMMAND_HANDLER( 
   id, 
   code, 
   func  
)

Parameters

  • id
    [in] The identifier of the menu item, control, or accelerator.

  • code
    [in] The notification code.

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

Requirements

Header: atlwin.h

See Also

Reference

REFLECT_NOTIFICATIONS

Other Resources

Message Map Macros (ATL)

ATL Macros