IWebBrowser2::ToolBar property
Sets or gets whether toolbars for the object are visible.
This property is read/write.
Syntax
HRESULT put_ToolBar(
[in] INT Value
);
HRESULT get_ToolBar(
[out] INT *pValue
);
Property value
| Value | Meaning |
|---|---|
| TRUE | Default. Toolbar is visible |
| FALSE | Toolbar is hidden. |
Error codes
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.
Requirements
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
Exdisp.h |
Library |
Shdocvw.dll |