Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
We recommend using Visual Studio 2017

CommandUIHandler Delegate

 

Registers callback methods with a user interface update command message.

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

cmdID 

The command ID.

cmdUI

The command message ID.

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)

Show: