CEditView::GetSelectedText

Call GetSelectedText to copy the selected text into a CString object, up to the end of the selection or the character preceding the first carriage-return character in the selection.

void GetSelectedText(
   CString& strResult 
) const;

Parameters

  • strResult
    A reference to the CString object that is to receive the selected text.

Requirements

Header: afxext.h

See Also

Reference

CEditView Class

Hierarchy Chart

CEditView::OnReplaceSel

Other Resources

CEditView Members