LimitText
Limits the amount of text a user can enter into the RichEdit control.
void LimitText( long nChars = 0 )
None.
EX1
#include <..\OriginLab\DialogEx.h> #define IDC_RICHEDIT1 1001 #define TEXT_LIMITS 4096 void RichEdit_LimitText(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