Help Center

CRichEditCtx.CallAutocorrectProcmethod

Calls the autocorrect callback function that is stored by the (SET) **AutocorrectProc** property, provided that the text preceding the insertion point is a candidate for autocorrection.

Windowsmethoddocumented

Syntax

FUNCTION CallAutocorrectProc (BYVAL char AS WCHAR) AS LONG

Parameters

NameDescription
charA character of type WCHAR. If this character is a tab (U+0009), and the character preceding the insertion point isn't a tab, then the character preceding the insertion point is treated as part of the autocorrect candidate string instead of as a string delimiter; otherwise, it has no effect.

Return value

The return value is zero if the message succeeds, or nonzero if an error occurs.

Description

Calls the autocorrect callback function that is stored by the (SET) AutocorrectProc property, provided that the text preceding the insertion point is a candidate for autocorrection.

Reference

  • Defined in AfxNova/CRichEditCtx.inc:171
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class