X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..777f37e0ccea2836804085fc7d0f5d9666a787f9:/src/msw/ole/dropsrc.cpp diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp index cda175f054..91dcb37866 100644 --- a/src/msw/ole/dropsrc.cpp +++ b/src/msw/ole/dropsrc.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: msw/ole/dropsrc.cpp +// Name: src/msw/ole/dropsrc.cpp // Purpose: implementation of wxIDropSource and wxDropSource // Author: Vadim Zeitlin // Modified by: @@ -23,12 +23,11 @@ #if defined(__BORLANDC__) #pragma hdrstop #endif + #ifndef WX_PRECOMP -#include "wx/window.h" + #include "wx/window.h" #endif -#include "wx/setup.h" - #if wxUSE_OLE && wxUSE_DRAG_AND_DROP #include "wx/log.h" @@ -53,18 +52,19 @@ class wxIDropSource : public IDropSource { public: wxIDropSource(wxDropSource *pDropSource); - - DECLARE_IUNKNOWN_METHODS; + virtual ~wxIDropSource() { } // 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 - DECLARE_NO_COPY_CLASS(wxIDropSource) + DECLARE_NO_COPY_CLASS(wxIDropSource) }; // ============================================================================