X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/82df67d960355e99a66b1db473b9d6236bf2fbb9..480e9098a2d8c0c369960680da72221d85cec42c:/src/msw/ole/dropsrc.cpp?ds=inline diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp index 8f0ab7e6f4..e9f543c59b 100644 --- a/src/msw/ole/dropsrc.cpp +++ b/src/msw/ole/dropsrc.cpp @@ -6,7 +6,7 @@ // Created: 10.05.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "dropsrc.h" #endif @@ -38,17 +38,13 @@ #include "wx/log.h" #include "wx/dnd.h" -#include +#include "wx/msw/private.h" -#if wxUSE_NORLANDER_HEADERS +// for some compilers, the entire ole2.h must be included, not only oleauto.h +#if wxUSE_NORLANDER_HEADERS || defined(__WATCOMC__) || defined(__WXWINCE__) #include #endif -#ifndef __WIN32__ - #include - #include -#endif - #include #include "wx/msw/ole/oleutils.h" @@ -71,6 +67,8 @@ public: private: DWORD m_grfInitKeyState; // button which started the d&d operation wxDropSource *m_pDropSource; // pointer to C++ class we belong to + + DECLARE_NO_COPY_CLASS(wxIDropSource) }; // ============================================================================ @@ -243,11 +241,11 @@ bool wxDropSource::GiveFeedback(wxDragResult effect) { ::SetCursor((HCURSOR)cursor.GetHCURSOR()); - return TRUE; + return true; } else { - return FALSE; + return false; } }