[This is preliminary documentation and subject to change.]
Enables a user to change the state of a menu button.
HRESULT SetButtonState(
  int idCommand,           // Specifies the command identifier
  MMC_BUTTON_STATE nState  // Specifies the state of the button
  BOOL bState              // Specifies TRUE or FALSE
);
 | Value | Meaning | 
|---|---|
| ENABLED | The button accepts user input. A button that does not have this state does not accept user input and is grayed. | 
| HIDDEN | The button is not visible and cannot receive user input. | 
| BUTTONPRESSED | The button is being pressed. |