Help Center

CRichEdit.SetPalettemethod

Deprecated. Sets the text layout for a Microsoft Rich Edit control.

Windowsmethoddocumented

Syntax

SUB SetPalette (BYVAL hRichEdit AS HWND, BYVAL newPalette AS HPALETTE)

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
newPaletteHandle to the new palette used by the rich edit control.

Description

Changes the palette that a rich edit control uses for its display window.

Remarks

The rich edit control does not check whether the new palette is valid.

Reference

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