CRichEditCtrl でこのオブジェクトのテキストの境界を取得します。
long GetLimitText( ) const;
戻り値
現在のテキストの境界 CRichEditCtrl の、このオブジェクトのサイズ (バイト単位)。
解説
テキストの境界がテキストの最大量は、バイトで、リッチ エディット コントロールを使用できます。
詳細については、Windows SDKの EM_GETLIMITTEXT を参照してください。
使用例
// 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