long GetTextLength( );
Return Value
The length of the text in this CRichEditCtrl object.
Remarks
Call this function to retrieve the length of the text in this CRichEditCtrl object.
For more information, see WM_GETTEXTLENGTH in the Win32 documentation.
Example
// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
// Limit the rich edit controls text to the number of
// characters currently in it.
pmyRichEditCtrl->LimitText(pmyRichEditCtrl->GetTextLength());
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::LimitText, CRichEditCtrl::GetLimitText