Пример #1
0
void CResultDialog::OnCopyAllToClipboard() 
{
  CRichEditCtrl *pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
  long nStartChar, nEndChar;
  pEd->GetSel (nStartChar, nEndChar);
  pEd->SetSel (0, -1);
  pEd->Copy();
  pEd->SetSel (nStartChar, nEndChar);
}
Пример #2
0
void CResultDialog::OnCopySelectionToClipboard() 
{
	CRichEditCtrl *pEd = (CRichEditCtrl *) GetDlgItem (IDC_RICHEDIT_ResultDialog);
	pEd->Copy( );
}
Пример #3
0
void MessagesDlg::OnCopy()
{
	CRichEditCtrl* richEditList = (CRichEditCtrl*)GetDlgItem(IDC_LIST);
	richEditList->Copy();
}