[This is preliminary documentation and subject to change.]
Enables a snap-in to set an attribute of a button.
HRESULT SetButtonState(
int idCommand, // Command identifier
MMC_BUTTON_STATE nState, // State of the button
BOOL bState // Sets the button state
);
| Value | Meaning |
|---|---|
| ENABLED | The button accepts user input. A button that does not have this state does not accept user input and is grayed. |
| CHECKED | The button has the CHECKED style and is being pressed. |
| HIDDEN | The button is not visible and cannot receive user input. |
| INDETERMINATE | The button is grayed. |
| BUTTONPRESSED | The button is being pressed. |