Partager via


MMCN_BTN_CLICK message

The MMCN_BTN_CLICK notification message is sent to the snap-in's IComponent, IComponentData, or IExtendControlbar implementation when a user clicks a toolbar button.

Parameters

lpDataObject [in]

For IComponent::Notify or IComponentData::Notify, the pointer to the data object of the currently selected scope or result item. Not used by IExtendControlBar::ControlbarNotify.

arg

For IComponent::Notify or IComponentData::Notify, this parameter must be 0 (zero). For IExtendControlBar::ControlbarNotify, this parameter is the data object of the currently selected scope or result item.

param [in]

For IComponent::Notify or IComponentData::Notify, this parameter is the verb that was selected (one of the MMC_CONSOLE_VERB enumerations). For IExtendControlBar::ControlbarNotify, this parameter is the snap-in-defined command ID of the selected toolbar button.

Return value

S_OK

The snap-in successfully handled the notification.

S_FALSE

The snap-in does not handle the notification. MMC then performs a default operation for the notification.

Remarks

For a custom view (custom OCX or webpage) for which the MMC_VERB_PROPERTIES verb is enabled, when the user clicks the Properties button on the console toolbar, MMC sends the snap-in an MMCN_BTN_CLICK notification message. The notification's param argument contains the MMC_VERB_PROPERTIES enumerator value, and its lpDataObject argument contains DOBJ_CUSTOMOCX or DOBJ_CUSTOMWEB.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Mmc.h

See also

IComponent::Notify

IComponentData::Notify

IExtendControlbar::ControlbarNotify