#if wxUSE_DRAGIMAGE
#ifndef WX_PRECOMP
+ #include "wx/msw/wrapcctl.h" // include <commctrl.h> "properly"
#include <stdio.h>
#include "wx/window.h"
#include "wx/dcclient.h"
#include "wx/msw/wince/missing.h"
#endif // __WXWINCE__
-// include <commctrl.h> "properly"
-#include "wx/msw/wrapcctl.h"
-
// Wine doesn't have this yet
#ifndef ListView_CreateDragImage
#define ListView_CreateDragImage(hwnd, i, lpptUpLeft) \
else
flags = ILC_COLOR32;
#endif
- bool mask = true;
- if ( mask )
- flags |= ILC_MASK;
+
+ flags |= ILC_MASK;
m_hImageList = (WXHIMAGELIST) ImageList_Create(image.GetWidth(), image.GetHeight(), flags, 1, 1);