CRichEditCtrl::GetTextRange
TOC
Collapse the table of content
Expand the table of content

CRichEditCtrl::GetTextRange

 

Gets the specified range of characters.


      int GetTextRange(
   int nFirst,
   int nLast,
   CString& refString 
) const;

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.

The number of characters copied, not including the terminating null character.

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

Show:
© 2016 Microsoft