Share via


MMCN_MENU_BTNCLICK message

The MMCN_MENU_BTNCLICK notification message is sent to the snap-in IExtendControlbar interface when the user clicks a snap-in defined menu button.

Parameters

lpDataObject

Not used.

arg

The data object for a currently selected scope or result item.

param [in]

A pointer to a MENUBUTTONDATA structure.

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

The idCommand member of the MENUBUTTONDATA structure holds the user-specified command ID of the menu item that was clicked. The x and y members of this structure specify the position, if any, at which the snap-in's context menu is to be displayed.

The snap-in should display a context menu at the specified position and perform the required tracking and item selection processing.

Requirements

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

See also

IMenuButton

IMenuButton::SetButtonState