Partager via


IWebBrowser2::MenuBar Property

Sets or gets a value that indicates whether the Windows Internet Explorer menu bar is visible.

Syntax

HRESULT IWebBrowser2::get_MenuBar(VARIANT_BOOL *pValue);
HRESULT IWebBrowser2::put_MenuBar(VARIANT_BOOL Value);

Parameters

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

Possible Values

VARIANT_TRUE Default. Menu bar is visible.
VARIANT_FALSE Menu bar is hidden.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

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