Help Center

CRichEdit.SetFontmethod

Sets the font used by a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetFont (BYVAL hRichEdit AS HWND, BYREF wszFaceName AS WSTRING, BYVAL ptsize AS LONG) AS LRESULT

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
wszFaceNameThe font name.
ptsizeThe font size in points.

Return value

If the operation succeeds, the return value is a nonzero value.

If the operation fails, the return value is zero.

Description

Sets the font used by a rich edit control.

Reference

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