Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
COLORREF SetBkColor( COLORREF cr );
Return Value
A 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 , 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;
}