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.

IExtendControlbar::ControlbarNotify method

The IExtendControlbar::ControlbarNotify method specifies the notification sent to the snap-in from the console as a result of user action.

Syntax


HRESULT ControlbarNotify(
  [in] MMC_NOTIFY_TYPE event,
  [in] LPARAM          arg,
  [in] LPARAM          param
);

Parameters

event [in]

A value that specifies one of the following:

MMCN_BTN_CLICK

A button on the toolbar was clicked.

MMCN_DESELECT_ALL

All items of a virtual list are deselected.

MMCN_SELECT

An item was selected and the snap-in should update the toolbar options.

MMCN_MENU_BTNCLICK

A menu button on the toolbar is clicked.

arg [in]

Depends on the event parameter. For more information, see MMC Notifications.

param [in]

Depends on the event parameter. For more information, see MMC Notifications.

Return value

This method can return one of these values.

S_OK

Depends on the notification type.

S_FALSE

Depends on the notification type. The snap-in should return S_FALSE for any notification it does not handle. MMC then performs a default operation for the notification.

Remarks

For more information, see the individual notifications. The snap-in should return S_FALSE for any notification it does not handle.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

See also

IToolbar

 

 

Show: