Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Changes the icon image and tooltip of a Thumbnail Toolbar button.
This method is not supported for Windows apps using JavaScript.
![]() |
Syntax
HRESULT retVal = object.msSiteModeShowButtonStyle(uiButtonID, uiStyleID);
Parameters
uiButtonID [in]
Type: VARIANTThe ID of a button that is previously installed with IShellUIHelper4::msSiteModeAddThumbBarButton.
uiStyleID [in]
Type: VARIANTThe style ID that IShellUIHelper4::msSiteModeAddButtonStyle returns.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Standards information
There are no standards that apply here.
Remarks
The original icon and tooltip are assigned to Style 0
; you can reset to the original button style by passing 0
in the uiStyleID parameter. Applying a button style will also reset the button state to active and visible.
See also
Reference