CRichEditCtrl::SetBackgroundColor
COLORREF SetBackgroundColor( BOOL bSysColor**, COLORREF** cr );
Return Value
The previous background color for this CRichEditCtrl object.
Parameters
bSysColor
Indicates if the background color should be set to the system value. If this value is TRUE, cr is ignored.
cr
The requested background color. Used only if bSysColor is FALSE.
Remarks
Call this function to set the background color for this CRichEditCtrl object. The background color can be set to the system value or to a specified value.
For more information, see message and structure in the Win32 documentation.
Example
// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
// Use red as the background color.
pmyRichEditCtrl->SetBackgroundColor(FALSE, RGB(255,0, 0));
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CDC::SetBkColor