From: Leon W. <moo...@us...> - 2004-11-08 07:35:08
|
Update of /cvsroot/anyedit/AnyEditv2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26335 Modified Files: BugReport.cpp Log Message: Fixed copy to clipboard function. Index: BugReport.cpp =================================================================== RCS file: /cvsroot/anyedit/AnyEditv2/BugReport.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** BugReport.cpp 7 Sep 2004 19:55:54 -0000 1.7 --- BugReport.cpp 8 Nov 2004 07:34:51 -0000 1.8 *************** *** 209,214 **** void CBugReport::OnButtonCopyClipboard() { - OpenClipboard(); - EmptyClipboard(); CString clipStr = _T("AnyEdit Version : "); CString tempStr; --- 209,212 ---- *************** *** 227,232 **** LPCSTR str = clipStr.GetBuffer(tempStr.GetLength()); ! ! SetClipboardData(CF_TEXT, (void *)str); ! CloseClipboard(); } --- 225,229 ---- LPCSTR str = clipStr.GetBuffer(tempStr.GetLength()); ! CopyStrToClipboard(str); ! clipStr.ReleaseBuffer(); } |