Export (0) Print
Expand All

CEdit::Paste

Call this function to insert the data from the Clipboard into the CEdit at the insertion point.

void Paste( );

Data is inserted only if the Clipboard contains data in CF_TEXT format.

For more information, see WM_PASTE in the Windows SDK.

// Replace all of the text with the text in the clipboard.
m_myEdit.SetSel(0, -1);
m_myEdit.Paste();

Header: afxwin.h

Community Additions

ADD
Show:
© 2015 Microsoft