Export (0) Print
Expand All
MFC
Expand Minimize

CRichEditCtrl::Paste 

Inserts the data from the Clipboard into the CRichEditCtrl at the insertion point, the location of the caret.


void Paste( );

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

For more information, see WM_PASTE in the Platform SDK.

// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;

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

Community Additions

ADD
Show:
© 2014 Microsoft