Compartir a través de


COMMAND_ID_HANDLER

 

Similar to COMMAND_HANDLER, but maps a WM_COMMAND message based only on the identifier of the menu item, control, or accelerator.

Syntax

COMMAND_ID_HANDLER( 
id
, 
func
 )

Parameters

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

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

Requirements

Header: atlwin.h

See Also

Message Map Macros (ATL)
ATL Macros
COMMAND_CODE_HANDLER
COMMAND_RANGE_HANDLER
MESSAGE_HANDLER
NOTIFY_ID_HANDLER