Поделиться через


ICommandSource::AddCommandUIHandler

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

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

Параметры

  • cmdID
    The command ID.

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

Заметки

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

Требования

Header: afxwinforms.h

См. также

Основные понятия

ICommandSource Interface

ICommandSource::RemoveCommandUIHandler