CRichEditCtrl::GetLimitText
Získá text limit CRichEditCtrl objektu.
long GetLimitText( ) const;
Vrácená hodnota
Aktuální text omezení, v bajtech pro tento CRichEditCtrl objektu.
Poznámky
Text limit je maximální množství textu v bajtech, ovládací prvek RichEdit může přijmout.
Další informace naleznete v EM_GETLIMITTEXT v .
Příklad
// The new text of the rich edit control.
LPCTSTR lpszmyString = _T("Here's some text in our rich edit control!");
long nLength = (long)_tcslen(lpszmyString);
// Want the text limit to be at least the size of the new string.
if (m_myRichEditCtrl.GetLimitText() < nLength)
m_myRichEditCtrl.LimitText(nLength);
m_myRichEditCtrl.SetWindowText(lpszmyString);
Požadavky
Záhlaví: afxcmn.h