///////////////////////////////////////////////////////////////////////////////
-// Name: msw/ole/dropsrc.cpp
+// Name: src/msw/ole/dropsrc.cpp
// Purpose: implementation of wxIDropSource and wxDropSource
// Author: Vadim Zeitlin
// Modified by:
// Created: 10.05.98
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "dropsrc.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#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"
{
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)
+ wxDECLARE_NO_COPY_CLASS(wxIDropSource);
};
// ============================================================================
{
::SetCursor((HCURSOR)cursor.GetHCURSOR());
- return TRUE;
+ return true;
}
else
{
- return FALSE;
+ return false;
}
}
-#endif //USE_DRAG_AND_DROP
+#endif // wxUSE_OLE && wxUSE_DRAG_AND_DROP