COLORREF SetBkColor( COLORREF cr );
Return Value
A COLORREF value that represents the previous default background color.
Parameters
cr
COLORREF value that specifies the new background color. Specify the CLR_DEFAULT value to cause the status bar to use its default background color.
Remarks
This member function implements the behavior of the Win32 message SB_SETBKCOLOR, as described in the Platform SDK.
Example
int CMyStatusBarCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CStatusBarCtrl::OnCreate(lpCreateStruct) == -1)
return -1;
SetBkColor( RGB(0,0,250) );
HICON hIcon;
VERIFY( hIcon = AfxGetApp()->LoadIcon(IDR_PANE_0_ICON) );
VERIFY( SetIcon(0, hIcon) );
return 0;
}