CRichEditCtrl::GetLimitText
텍스트 제한을 가져옵니다 CRichEditCtrl 개체입니다.
long GetLimitText( ) const;
반환 값
현재 텍스트 제한 (바이트)이 CRichEditCtrl 개체입니다.
설명
최대 텍스트 제한 텍스트 (바이트)에서입니다 rich edit 컨트롤을 사용할 수 있습니다.
자세한 내용은 EM_GETLIMITTEXT 에 있는 Windows SDK.
예제
// 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);
요구 사항
헤더: afxcmn.h