Help Center

CRichEditCtx.SetBkgndColormethod

Sets the background color for a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetBkgndColor (BYVAL SysColor AS DWORD, BYVAL BkColor AS DWORD) AS DWORD

Parameters

NameDescription
SysColorSpecifies 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.
BkColorA COLORREF structure specifying the color if SysColor 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/CRichEditCtx.inc:2913
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class