]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/enhmeta.cpp
compile bug fixed in SetCursor
[wxWidgets.git] / src / msw / enhmeta.cpp
index 189d2980b83e842988ce71ec4f3151359baed866..5ce1e70d94449223eb3889545c12799f16396014 100644 (file)
@@ -36,6 +36,7 @@
 #endif //WX_PRECOMP
 
 #include "wx/metafile.h"
+#include "wx/clipbrd.h"
 
 #include "wx/msw/private.h"
 
@@ -161,6 +162,17 @@ wxSize wxEnhMetaFile::GetSize() const
     return size;
 }
 
+bool wxEnhMetaFile::SetClipboard(int WXUNUSED(width), int WXUNUSED(height))
+{
+#if wxUSE_DRAG_AND_DROP
+    wxCHECK_MSG( m_hMF, FALSE, _T("can't copy invalid metafile to clipboard") );
+
+    return wxTheClipboard->AddData(new wxEnhMetaFileDataObject(*this));
+#else // !wxUSE_DRAG_AND_DROP
+    wxFAIL_MSG(_T("not implemented"));
+#endif // wxUSE_DRAG_AND_DROP/!wxUSE_DRAG_AND_DROP
+}
+
 // ----------------------------------------------------------------------------
 // wxEnhMetaFileDC
 // ----------------------------------------------------------------------------