// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "cursor.h"
#endif
#include "wx/icon.h"
#include "wx/cursor.h"
#include "wx/settings.h"
+ #include "wx/intl.h"
#endif
#include "wx/module.h"
{
if ( m_hCursor )
{
+#ifndef __WXWINCE__
if ( m_destroyCursor )
::DestroyCursor((HCURSOR)m_hCursor);
+#endif
m_hCursor = 0;
}
hcursor = ::LoadCursor(wxGetInstance(), filename);
break;
+#ifndef __WXWINCE__
case wxBITMAP_TYPE_CUR:
hcursor = ::LoadCursorFromFile(filename);
break;
+#endif
case wxBITMAP_TYPE_ICO:
hcursor = wxBitmapToHCURSOR
if ( hcursor )
{
m_refData = new wxCursorRefData(hcursor, true /* delete it later */);
-
-#if WXWIN_COMPATIBILITY_2
- ((wxCursorRefData *)m_refData)->SetOk();
-#endif // WXWIN_COMPATIBILITY_2
}
}