BCGSuite for MFC
virtual BOOL CBCGPEditCtrl::Copy ( )
virtual

Copies either selected text or the whole text to the Clipboard in CF_TEXT format.

Returns
TRUE if the copy operation has succeeded; otherwise FALSE.

Call this function to copy either selected text or the whole text buffer to the Clipboard. The function fails (returns FALSE) in the following cases:

  • the copy operation is disabled (IsCopyEnabled() returns FALSE)
  • there is no selected text and m_bEnableWholeTextCopy is set to FALSE.