X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46697f31a56e92d865bb7a90a6093de14d4e8e5f..1794103babb9da5387ff71b43f3bd0aa6d2413e2:/src/msw/dragimag.cpp?ds=sidebyside diff --git a/src/msw/dragimag.cpp b/src/msw/dragimag.cpp index b56c1ef18a..396962f92f 100644 --- a/src/msw/dragimag.cpp +++ b/src/msw/dragimag.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: dragimag.cpp +// Name: src/msw/dragimag.cpp // Purpose: wxDragImage // Author: Julian Smart // Modified by: @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "dragimag.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -30,11 +26,8 @@ #if wxUSE_DRAGIMAGE -#if defined(__WIN95__) - #ifndef WX_PRECOMP #include -#include "wx/setup.h" #include "wx/window.h" #include "wx/dcclient.h" #include "wx/dcscreen.h" @@ -55,9 +48,8 @@ #include "wx/msw/wince/missing.h" #endif // __WXWINCE__ -#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) && !defined(__CYGWIN10__)) -#include -#endif +// include "properly" +#include "wx/msw/wrapcctl.h" // Wine doesn't have this yet #ifndef ListView_CreateDragImage @@ -243,10 +235,14 @@ bool wxDragImage::Create(const wxString& str, const wxCursor& cursor) 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 @@ -457,7 +453,4 @@ bool wxDragImage::Hide() return ret; } -#endif - // __WIN95__ - #endif // wxUSE_DRAGIMAGE