Condividi tramite


ICommandSource::AddCommandRangeHandler

Adds a group of command handlers to a command source object.

void AddCommandRangeHandler(
   unsigned int cmdIDMin,
   unsigned int cmdIDMax,
   CommandHandler^ cmdHandler
);

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 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::RemoveCommandRangeHandler