Status bar operations

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.


Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.