Partager via


CReBarCtrl::SetBkColor

Implements the behavior of the Win32 message RB_SETBKCOLOR, as described in the Windows SDK.

COLORREF SetBkColor(
   COLORREF clr 
);

Parameters

  • clr
    The COLORREF value that represents the new default background color.

Return Value

A COLORREF value that represents the previous default background color.

Remarks

See this topic for more information about when to set the background color, and how to set the default.

Requirements

Header: afxcmn.h

See Also

Concepts

CReBarCtrl Class

CReBarCtrl Members

Hierarchy Chart

CReBarCtrl::GetBkColor