Share via


IWebBrowser2::StatusText Property

Sets or gets the text in the status bar for the object.

Syntax

HRESULT IWebBrowser2::get_StatusText(BSTR *pbstr);
HRESULT IWebBrowser2::put_StatusText(BSTR bstr);

Parameters

  • pbstr
    Pointer to a variable of type BSTR that receives the status bar text.
  • bstr
    BSTR that specifies the status bar text.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Windows Internet Explorer 7 and later. The security settings that restrict access to the status bar from script do not apply to this method.

The WebBrowser object returns an error from this property.

The caller frees the pbstr buffer with the SysFreeString function.

See Also

IWebBrowser2::StatusBar, DWebBrowserEvents2::StatusTextChange