CRichEditCtrl::GetLimitText
Obtiene el límite de texto para este objeto de CRichEditCtrl .
long GetLimitText( ) const;
Valor devuelto
El límite actual de texto, en bytes, para este objeto de CRichEditCtrl .
Comentarios
El límite de texto es la cantidad máxima de texto, en bytes, el control rich edit puede aceptar.
Para obtener más información, vea EM_GETLIMITTEXT en Windows SDK.
Ejemplo
// 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);
Requisitos
encabezado: afxcmn.h