ICommandSource::AddCommandHandler
Adds a command handler to a command source object.
void AddCommandHandler(
unsigned int cmdID,
CommandHandler^ cmdHandler
);
Parameters
cmdID
The command ID.cmdHandler
A handle to the command handler method.
Remarks
This method adds the command handler cmdHandler to the command source object and maps the handler to cmdID.
See How to: Add Command Routing to the Windows Forms Control for an example of how to use AddCommandHandler.
Requirements
Header: afxwinforms.h