X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bfbd6dc1921a17bd880d580dd660e8bc478a9391..28be2e8a170979d476a5ea4f585505b8a2f5af27:/src/msw/enhmeta.cpp diff --git a/src/msw/enhmeta.cpp b/src/msw/enhmeta.cpp index 0fd8b2d9af..2f1661b329 100644 --- a/src/msw/enhmeta.cpp +++ b/src/msw/enhmeta.cpp @@ -164,9 +164,14 @@ wxSize wxEnhMetaFile::GetSize() const 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")); + return FALSE; +#endif // wxUSE_DRAG_AND_DROP/!wxUSE_DRAG_AND_DROP } // ----------------------------------------------------------------------------