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.
Sets the background color in a status bar.
COLORREF SetBkColor(
COLORREF cr
);
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.
Return Value
A COLORREF value that represents the previous default background color.
Remarks
This member function implements the behavior of the Win32 message SB_SETBKCOLOR, as described in the Windows SDK.
Example
m_wndSBC.SetBkColor(RGB(0,0,250));
HICON hIcon = AfxGetApp()->LoadIcon(IDI_PANE_0_ICON);
VERIFY(hIcon);
VERIFY(m_wndSBC.SetIcon(0, hIcon));
Requirements
Header: afxcmn.h