Help Center

CRichEdit.SetBkgndColormethod

Sets the background color for a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetBkgndColor (BYVAL hRichEdit AS HWND, BYVAL pSysColor AS DWORD, BYVAL pBkColor AS DWORD) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
pSysColorSpecifies 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.
pBkColorA COLORREF structure specifying the color if pSysColor is zero. To generate a COLORREF, use the RGB macro (renamed as BGR in the FreeBasic Windows headers).

Return value

This message returns the original background color.

Description

Sets the background color for a rich edit control.

Reference

  • Defined in AfxNova/CRichEdit.inc:954
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class