CRichEditCtrl::Copy

void Copy( );

Remarks

Call this function to copy the current selection (if any) in the rich edit control to the Clipboard.

For more information, see WM_COPY in the Win32 documentation.

Example

void snip_CRichEditCtrl_Copy()
{
   // The pointer to my rich edit control.
   extern CRichEditCtrl* pmyRichEditCtrl;

   // Copy all of the text to the clipboard.
   pmyRichEditCtrl->SetSel(0, -1);
   pmyRichEditCtrl->Copy();
}

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::Paste, CRichEditCtrl::Cut