Condividi tramite


ICommandSource::AddCommandRangeUIHandler

Adds a group of user interface command message handlers to a command source object.

void AddCommandRangeUIHandler( 
   unsigned int cmdIDMin, 
   unsigned int cmdIDMax, 
   CommandUIHandler^ cmdUIHandler 
);

Parameters

  • cmdIDMin
    The beginning index of the command ID range.

  • cmdIDMax
    The ending index of the command ID range.

  • cmdHandler
    A handle to the message handler method to which the commands are mapped.

Remarks

This method maps a contiguous range of command IDs to a single user interface command message handler and adds it to the command source object. This is used for handling a group of related buttons with one method.

Requirements

Header: afxwinforms.h

See Also

Reference

ICommandSource Interface

ICommandSource::RemoveCommandRangeUIHandler