EM_SETBKGNDCOLOR

The EM_SETBKGNDCOLOR message sets the background color for a rich edit control.

EM_SETBKGNDCOLOR 
wParam = (WPARAM) (BOOL) fUseSysColor; 
lParam = (LPARAM) (COLORREF) clr; 
 

Parameters

fUseSysColor
Value specifying whether to use the system color. If this parameter is nonzero, the background is set to the window background system color. Otherwise, the background is set to the specified color.
clr
COLORREF structure specifying the color if fUseSysColor is zero.

Return Values

Returns the old background color.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Messages, COLORREF