COMPCOLOR structure (richedit.h)

Contains color settings for a composition string.

Syntax

typedef struct _compcolor {
  COLORREF crText;
  COLORREF crBackground;
  DWORD    dwEffects;
} COMPCOLOR;

Members

crText

Type: COLORREF

Color of text. To generate a COLORREF, use the RGB macro.

crBackground

Type: COLORREF

Color of background. To generate a COLORREF, use the RGB macro.

dwEffects

Type: DWORD

Character effect values as described for the dwEffects member in the CHARFORMAT structure.

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

CHARFORMAT

COLORREF

Other Resources

RGB

Reference