// 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
ImageList_Destroy(GetHimageList());
m_hImageList = 0;
- UINT flags = 0 ;
#ifdef __WXWINCE__
- flags = ILC_COLOR;
+ UINT flags = ILC_COLOR;
#else
+ UINT flags wxDUMMY_INITIALIZE(0) ;
if (image.GetDepth() <= 4)
flags = ILC_COLOR4;
else if (image.GetDepth() <= 8)
ImageList_Destroy(GetHimageList());
m_hImageList = 0;
- UINT flags = 0 ;
#ifdef __WXWINCE__
- flags = ILC_COLOR;
+ UINT flags = ILC_COLOR;
#else
+ UINT flags wxDUMMY_INITIALIZE(0) ;
if (image.GetDepth() <= 4)
flags = ILC_COLOR4;
else if (image.GetDepth() <= 8)
{
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