Help Center

CRichEdit.SetPunctuationmethod

Sets the punctuation characters for a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetPunctuation (BYVAL hRichEdit AS HWND, BYVAL punctype AS LONG, BYVAL ppunct AS PUNCTUATION PTR) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
punctypeSpecifies the punctuation type, which can be one of the following values.
PC_LEADING. Leading punctuation characters.
PC_FOLLOWING. Following punctuation characters.
PC_DELIMITER. Delimiter.
PC_OVERFLOW. Not supported.
ppunctPointer to a PUNCTUATION structure that contains the punctuation characters.

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 punctuation characters for a rich edit control.

Reference

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