4 This component inserts custom handlers for managing the Copy, Cut and Paste menu items under the Edit menu.
5 Select a view class.
6 Enter a string with which to register a custom clipboard format.
10 The selected class is derived from CEditView, which contains\nbuilt in support for the Copy, Cut, and Paste menu items.\n\nDo you wish to continue and override this built in support?
11 The selected class is derived from CRichEditView, which contains\nbuilt in support for the Copy, Cut, and Paste menu items.\n\nDo you wish to continue and override this built in support?
12 This component has already been applied to this project, and cannot be applied a second time!
13 The clipboard assistant could find no classes derived from CView in this project. At least one class derived from CView is required to insert this component into this project.
14 Could not add afxpriv.h to project include file.\nYou will need to add a #include directive for afxpriv.h by hand.
15 Could not find the constructor for the specified view class.\nYou will need to add the code to initialize m_nClipboardFormat by hand.
16 Component insertion cancelled at user's request.
17 The Clipboard Assistant was not able to insert the specified support for clipboard operations. The Clipboard Assistant will not overwrite existing functions. It is very likely that one of the functions this component was trying to write already exists for the specified class.
18 The Clipboard Assistant has successfully modified your project files, to add clipboard support to the specified CView derived class.
225 \n {\n if (OpenClipboard())\n {\n HANDLE hData = ::GetClipboardData(m_nClipboardFormat);\n if (hData != NULL)\n {\n CSharedFile memFile;\n memFile.SetHandle(hData,FALSE);\n
227 \n\n // TODO: Add/Replace code to selectively enable and disable the copy \n // and cut menu items. Return TRUE when one or more items are
228 \n\n // TODO: Add/Replace code to copy the currently selected data to or\n // from the clipboard, via the CArchive object. Note: \n // ar.IsStoring() set to TRUE indicates a copy or cut operation.
245 CArchive ar(&memFile, CArchive::load);\n\n // serialize data to document\n DoCutCopyPaste(ar, FALSE);\n ar.Close();\n memFile.Detach();\n }\n else\n
247 \n // selected, and return FALSE when no items are selected.\n\n return TRUE;
248 \n\n GetDocument()->Serialize(ar);\n\n if (bCut)\n {\n ASSERT(ar.IsStoring()); // no cutting on paste operation\n\n // TODO: Add/Replace code to delete the currently selected items.