The add-in object can use the IStatusLine interface to inform the user about its status. The SetStatusLine() method displays a text in the status bar. The ResetStatusLine() method clears the status bar.
SetStatusLine
Description:
Sets status bar text.
Syntax:
HRESULT SetStatusLine(BSTR bstrStatusText);
Parameters:
bstrStatusText
Type: BSTR. Status bar text.
Return value:
- S_OK - the text is displayed in the status bar.
-
E_FAIL - unknown error.
-
Other return codes that inform about errors are possible.
ResetStatusLine
Description:
Clears the status bar.
Syntax:
HRESULT ResetStatusLine();
Return value:
-
S_OK - the status bar is cleared.
-
E_FAIL - unknown error.
-
Other return codes that inform about errors are possible.