Compartilhar via


CommandUIHandler Delegate

Registers callback methods with a user interface update command message.

delegate void CommandUIHandler(
   unsigned int cmdID,
   ICommandUI^ cmdUI
);

Parameters

  • cmdID
    The command ID.

  • cmdUI
    The command message ID.

Remarks

This delegate registers callback methods with a user interface update command message. CommandUIHandler is similar to CommandHandler except that this delegate is used with user interface object update commands. User interface update commands should be mapped one-to-one with message handler methods.

For more information on using Windows Forms, see Using a Windows Form User Control in MFC.

Requirements

Header: afxwinforms.h (defined in assembly atlmfc\lib\mfcmifc80.dll)

See Also

Tasks

How to: Add Command Routing to the Windows Forms Control

Reference

CommandHandler Delegate