Freigeben über


msSiteModeShowButtonStyle method

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

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

IShellUIHelper4::msSiteModeAddButtonStyle

IShellUIHelper4::msSiteModeUpdateThumbBarButton