IVsStatusbar::SetColorText Method (String^, UInt32, UInt32)

 

Sets the status bar text with foreground and background colors.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int SetColorText(
	String^ pszText,
	unsigned int crForeColor,
	unsigned int crBackColor
)

Parameters

pszText
Type: System::String^

[in] The text to display in the status text area.

crForeColor
Type: System::UInt32

[in] The foreground color of pszText.

crBackColor
Type: System::UInt32

[in] The background color of pszText.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsStatusbar::SetColorText(
   [in]LPCOLESTR pszText,
   [in] COLORREF crForeColor,
   [in] COLORREF crBackColor
);

The method ignores the values of crForeColor and crBackColor and always sets the foreground color to white and the background color to dark blue.

Return to top
Show: