Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Retrieves the length of the text, in characters, in this CRichEditCtrl object, not including the terminating null character.
long GetTextLength( ) const;
Return Value
The length of the text in this CRichEditCtrl object.
Remarks
For more information, see WM_GETTEXTLENGTH in the Windows SDK.
Example
// Limit the rich edit controls text to the number of
// characters currently in it.
m_myRichEditCtrl.LimitText(m_myRichEditCtrl.GetTextLength());
Requirements
Header: afxcmn.h