X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cc11ded1ae65fb38d6ff7a5483c6c27ea3471bfa..dd9f8b6bb6935360a8271dc3e8749fb026b601a8:/src/msw/ole/dropsrc.cpp?ds=sidebyside diff --git a/src/msw/ole/dropsrc.cpp b/src/msw/ole/dropsrc.cpp index 7b66b0c350..90f89d419e 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,15 +23,14 @@ #if defined(__BORLANDC__) #pragma hdrstop #endif -#ifndef WX_PRECOMP -#include "wx/window.h" -#endif - -#include "wx/setup.h" #if wxUSE_OLE && wxUSE_DRAG_AND_DROP -#include "wx/log.h" +#ifndef WX_PRECOMP + #include "wx/window.h" + #include "wx/log.h" +#endif + #include "wx/dnd.h" #include "wx/msw/private.h" @@ -55,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 @@ -246,4 +245,4 @@ bool wxDropSource::GiveFeedback(wxDragResult effect) } } -#endif //USE_DRAG_AND_DROP +#endif // wxUSE_OLE && wxUSE_DRAG_AND_DROP