Help Center

CRichEdit.GetLimitTextmethod

Retrieves the current text limit for a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION GetLimitText (BYVAL hRichEdit AS HWND) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.

Return value

The return value is the text limit.

Description

Retrieves the current text limit for an edit control. You can send this message to either an edit control or a rich edit control.

Remarks

The text limit is the maximum amount of text, in characters, that the control can contain. For ANSI text, this is the number of bytes; for Unicode text, this is the number of characters. Two documents with the same character limit will yield the same text limit, even if one is ANSI and the other is Unicode.

Reference

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