Compartir a través de


ICommandSource::AddCommandUIHandler

Adds a user interface command message handler to a command source object.

void AddCommandUIHandler( 
   unsigned int cmdID, 
   CommandUIHandler^ cmdUIHandler 
);

Parameters

  • cmdID
    The command ID.

  • cmdUIHandler
    A handle to the user interface command message handler method.

Remarks

This method adds the user interface command message handler cmdHandler to the command source object and maps the handler to cmdID.

Requirements

Header: afxwinforms.h

See Also

Concepts

ICommandSource Interface

ICommandSource::RemoveCommandUIHandler