long GetSelText( LPTSTR lpBuf ) const;
CString GetSelText( ) const;
Return Value
Depends on the form:
Parameters
lpBuf
Pointer to the buffer to receive the text in the current selection.
Remarks
Call this function to retrieve the text from the current selection in this CRichEditCtrl object.
If you use the first form, GetSelText( lpBuf ), you must ensure that the buffer is large enough for the text it will receive. Call GetSel to determine the number of characters in the current selection.
For more information, see EM_GETSELTEXT in the Win32 documentation.
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::GetSel, CRichEditCtrl::GetSelectionType