Поделиться через


CStatusBarCtrl::SetBkColor

Sets the background color in a status bar.

COLORREF SetBkColor(
   COLORREF cr 
);

Параметры

  • 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.

Возвращаемое значение

A COLORREF value that represents the previous default background color.

Заметки

This member function implements the behavior of the Win32 message SB_SETBKCOLOR, as described in the Windows SDK.

Пример

m_wndSBC.SetBkColor(RGB(0,0,250));

HICON hIcon = AfxGetApp()->LoadIcon(IDI_PANE_0_ICON);
VERIFY(hIcon);
VERIFY(m_wndSBC.SetIcon(0, hIcon));

Требования

Header: afxcmn.h

См. также

Основные понятия

CStatusBar Class

CStatusBar Members

Hierarchy Chart