// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dragimag.h"
#endif
#include "wx/msw/dragimag.h"
#include "wx/msw/private.h"
+#ifdef __WXWINCE__ // for SM_CXCURSOR and SM_CYCURSOR
+#include "wx/msw/wince/missing.h"
+#endif // __WXWINCE__
+
#if defined(__WIN95__) && !(defined(__GNUWIN32_OLD__) && !defined(__CYGWIN10__))
#include <commctrl.h>
#endif
m_hImageList = 0;
UINT flags = 0 ;
+#ifdef __WXWINCE__
+ flags = ILC_COLOR;
+#else
if (image.GetDepth() <= 4)
flags = ILC_COLOR4;
else if (image.GetDepth() <= 8)
flags = ILC_COLOR24;
else
flags = ILC_COLOR32;
+#endif
bool mask = (image.GetMask() != 0);
m_hImageList = 0;
UINT flags = 0 ;
+#ifdef __WXWINCE__
+ flags = ILC_COLOR;
+#else
if (image.GetDepth() <= 4)
flags = ILC_COLOR4;
else if (image.GetDepth() <= 8)
flags = ILC_COLOR24;
else
flags = ILC_COLOR32;
+#endif
bool mask = TRUE;
if ( mask )
flags |= ILC_MASK;
{
if ( m_hImageList )
ImageList_Destroy(GetHimageList());
- m_hImageList = (WXHIMAGELIST) TreeView_CreateDragImage((HWND) treeCtrl.GetHWND(), (HTREEITEM) (WXHTREEITEM) id);
- return TRUE;
+ m_hImageList = (WXHIMAGELIST)
+ TreeView_CreateDragImage(GetHwndOf(&treeCtrl), (HTREEITEM) id.m_pItem);
+ return m_hImageList != 0;
}
#endif