Share via


CEdit::Copy

voidCopy();

Remarks

Call this function to coy the current selection (if any) in the edit control to the Clipboard in CF_TEXT format.

For more information, see in the Win32 documentation.

Example

// The pointer to my edit.
extern CEdit* pmyEdit;

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

CEdit OverviewClass MembersHierarchy Chart

See Also   CEdit::Clear, CEdit::Cut, CEdit::Paste