IMenuButton::SetButton method (mmc.h)

The IMenuButton::SetButton method enables a user to set the text attributes of a button in the menu bar that is changed.

Syntax

HRESULT SetButton(
  [in] int      idCommand,
  [in] LPOLESTR lpButtonText,
  [in] LPOLESTR lpTooltipText
);

Parameters

[in] idCommand

A value that specifies a user-supplied value that uniquely identifies the button to be added to the menu bar.

[in] lpButtonText

A pointer to the text value (a null-terminated string) to be displayed on the button.

[in] lpTooltipText

A pointer to the text value (a null-terminated string) to be displayed when the user places the mouse pointer on the button.

Return value

This method can return one of these values.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h
DLL Mmcndmgr.dll

See also

IMenuButton