/////////////////////////////////////////////////////////////////////////////
-// Name: dragimag.cpp
+// Name: src/msw/dragimag.cpp
// Purpose: wxDragImage
// Author: Julian Smart
// Modified by:
#if wxUSE_DRAGIMAGE
-#if defined(__WIN95__)
-
#ifndef WX_PRECOMP
#include <stdio.h>
-#include "wx/setup.h"
#include "wx/window.h"
#include "wx/dcclient.h"
#include "wx/dcscreen.h"
#include "wx/msw/wince/missing.h"
#endif // __WXWINCE__
-#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) && !defined(__CYGWIN10__))
-#include <commctrl.h>
-#endif
+// include <commctrl.h> "properly"
+#include "wx/msw/wrapcctl.h"
// Wine doesn't have this yet
#ifndef ListView_CreateDragImage
dc2.SelectObject(wxNullBitmap);
+#if wxUSE_WXDIB
// Make the bitmap masked
wxImage image = bitmap.ConvertToImage();
image.SetMaskColour(255, 255, 255);
return Create(wxBitmap(image), cursor);
+#else
+ return false;
+#endif
}
#if wxUSE_TREECTRL
return ret;
}
-#endif
- // __WIN95__
-
#endif // wxUSE_DRAGIMAGE