CEdit::GetLimitText
가져올 텍스트 제한 하려면이 멤버 함수를 호출 합니다. CEdit 개체입니다.
UINT GetLimitText( ) const;
반환 값
현재 텍스트 제한 (바이트)이 CEdit 개체입니다.
설명
텍스트도 텍스트 편집 컨트롤에서 사용할 수 있는 바이트에서의 최대 크기입니다.
[!참고]
이 멤버 함수는 Windows NT 4.0 및 Windows 95에 사용할 수 있는 시작입니다.
자세한 내용은 EM_GETLIMITTEXT 에 있는 Windows SDK.
예제
CString strText(_T("I'm an edit control!"));
UINT nLength = strText.GetLength() * sizeof(TCHAR);
// Want the text limit to be at least the size of the new string.
if (m_myEdit.GetLimitText() < nLength)
m_myEdit.SetLimitText(nLength);
m_myEdit.SetWindowText(strText);
요구 사항
헤더: afxwin.h