BCGSoft Professional Editor for MFC
BOOL CBCGPEditCtrl::CopyTextToClipboard ( LPCTSTR  lpszText,
int  nLen = -1 
)
protected

Copies a text string to the Clipboard.

Returns
Nonzero if the text was copied successfully; otherwise 0.

This function is used internally by the edit control to copy a text string to the Clipboard in CF_TEXT format.

Parameters
lpszTextSpecifies the text to copy.
nLenSpecifies the text to copy size.