GetLimitText
Gets the limit on the amount of text a user can enter into this RichEdit control.
long GetLimitText( )const
The current text limit, in bytes, for this RichEdit control.
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); }
Control.h