EM_SETBKGNDCOLOR message

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

Parameters

wParam

Specifies whether to use the system color. If this parameter is a nonzero value, the background is set to the window background system color. Otherwise, the background is set to the specified color.

lParam

A COLORREF structure specifying the color if wParam is zero. To generate a COLORREF, use the RGB macro.

Return value

This message returns the original background color.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Richedit.h

See also

Other Resources

COLORREF

RGB