RichEdit::GetLimitText

Description

Gets the limit on the amount of text a user can enter into this RichEdit control.

Syntax

long GetLimitText( )const

Parameters

Return

The current text limit, in bytes, for this RichEdit control.

Examples

EX1

#include <..\OriginLab\DialogEx.h>
#define IDC_RICHEDIT1 1001
#define TEXT_LIMITS 4096

void RichEdit_GetLimitText(Dialog& EditBoxes)
{
        RichEdit richEdit = EditBoxes.GetItem(IDC_RICHEDIT1);
        int nChars = TEXT_LIMITS;
        richEdit.LimitText(nChars);
        int nLimits = richEdit.GetLimitText();
        ASSERT(TEXT_LIMITS == nLimits);
}

Remark

See Also

header to Include

Control.h