Partilhar via


msSiteModeShowThumbBar method

Enables the Thumbnail Toolbar in the thumbnail preview of a pinned site.

 

Syntax

*object.*msSiteModeShowThumbBar()

Parameters

This method has no parameters.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
E_ACCESSDENIED

The current page is not a pinned site.

E_NOTIMPL

This method is not supported on Windows CE.

 

Remarks

This method completes the process of creating a Thumbnail Toolbar. You must add buttons to the Thumbnail Toolbar by using IShellUIHelper4::msSiteModeAddThumbBarButton before the Thumbnail Toolbar can be displayed.

Buttons cannot be added after the Thumbnail Toolbar is visible, but you can:

Note  To view the Thumbnail Toolbar, hover over the pinned site button in the Windows taskbar.

 

Examples

The following example adds two buttons and displays the Thumbnail Toolbar. The script stores the button ID values so that it can tell which button is clicked. For more information, see IShellUIHelper4::msSiteModeAddThumbBarButton.

btn1 = window.external.msSiteModeAddThumbBarButton('Images/play.ico', 'Play');
btn2 = window.external.msSiteModeAddThumbBarButton('Images/stop.ico', 'Stop');

window.external.msSiteModeShowThumbBar(); 

See also

window

external

Reference

IShellUIHelper4::msSiteModeAddThumbBarButton

IShellUIHelper4::msSiteModeUpdateThumbBarButton

IShellUIHelper4::msSiteModeAddButtonStyle