Help Center

CRichEdit.SetParaFormatmethod

Sets the paragraph formatting for the current selection in a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetParaFormat (BYVAL hRichEdit AS HWND, BYVAL pfmt AS PARAFORMAT PTR) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
pfmtpointer to a PARAFORMAT structure specifying the new paragraph formatting attributes. Only the attributes specified by the dwMask member are changed.

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 paragraph formatting for the current selection in a rich edit control.

Reference

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