Help Center

CRichEditCtx.CheckTextLimitmethod

Checks whether the number of characters to be added would exceed the maximum text limit.

Windowsmethoddocumented

Syntax

FUNCTION CheckTextLimit (BYVAL cch AS LONG) AS LONG

Parameters

NameDescription
cchThe number of characters to be added.

Return value

The number of characters that exceed the maximum text limit. This parameter is 0 if the number of characters does not exceed the limit.

Description

Checks whether the number of characters to be added would exceed the maximum text limit.

Reference

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