IVsStatusbar::SetColorText Method (String^, UInt32, UInt32)
Visual Studio 2015
Sets the status bar text with foreground and background colors.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
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::Int32If 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.
Show: