IWebBrowser2::ToolBar Property

Sets or gets whether toolbars for the object are visible.

Syntax

HRESULT IWebBrowser2::get_ToolBar(int *pValue);
HRESULT IWebBrowser2::put_ToolBar(int Value);

Parameters

  • pValue
    Pointer to a variable of type int that receives one of the values listed in Possible Values.
  • Value
    int that specifies one of the values listed in Possible Values.

Possible Values

FALSE Toolbar is hidden.
TRUE Default. Toolbar is visible.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

When the IWebBrowser2::ToolBar property is set to FALSE, it is not equivalent to the "toolbar=no" feature of window.open. Instead, it turns off all user interface elements that can be considered toolbars, leaving Windows Internet Explorer in a blank state.

The WebBrowser object saves the value of this property, but otherwise ignores it.

See Also

IWebBrowser2::StatusBar, IWebBrowser2::Visible