X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/521bf4ff3ef47059265beff5d53c9e1162beb122..dd9f8b6bb6935360a8271dc3e8749fb026b601a8:/src/msw/ole/dropsrc.cpp diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp index 1b5020da3a..90f89d419e 100644 --- a/src/msw/ole/dropsrc.cpp +++ b/src/msw/ole/dropsrc.cpp @@ -24,13 +24,13 @@ #pragma hdrstop #endif +#if wxUSE_OLE && wxUSE_DRAG_AND_DROP + #ifndef WX_PRECOMP #include "wx/window.h" + #include "wx/log.h" #endif -#if wxUSE_OLE && wxUSE_DRAG_AND_DROP - -#include "wx/log.h" #include "wx/dnd.h" #include "wx/msw/private.h" @@ -54,12 +54,12 @@ public: wxIDropSource(wxDropSource *pDropSource); virtual ~wxIDropSource() { } - DECLARE_IUNKNOWN_METHODS; - // IDropSource STDMETHODIMP QueryContinueDrag(BOOL fEscapePressed, DWORD grfKeyState); STDMETHODIMP GiveFeedback(DWORD dwEffect); + DECLARE_IUNKNOWN_METHODS; + private: DWORD m_grfInitKeyState; // button which started the d&d operation wxDropSource *m_pDropSource; // pointer to C++ class we belong to @@ -245,4 +245,4 @@ bool wxDropSource::GiveFeedback(wxDragResult effect) } } -#endif //USE_DRAG_AND_DROP +#endif // wxUSE_OLE && wxUSE_DRAG_AND_DROP