Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the specified range of characters.
int GetTextRange(
int nFirst,
int nLast,
CString& refString
) const;
Parameters
nFirst
The character position index immediately preceding the first character in the range.nLast
The character position immediately following the last character in the range.refString
A reference to a CString object that will receive the text.
Return Value
The number of characters copied, not including the terminating null character.
Remarks
For more information, see EM_GETTEXTRANGE in the Windows SDK.
GetTextRange supports the Rich Edit 2.0 functionality. See About Rich Edit Controls in the Windows SDK* *for more information.
Requirements
Header: afxcmn.h
See Also
Reference
CRichEditCtrl::GetTextLengthEx