Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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;
}