X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7fd328a34dce31f4995585a4046e95361ba1c8e2..aedd6d6aca05ccf22b067d34d5aa8037ed5138fc:/src/msw/cursor.cpp diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index b1058c29a6..221c3a3bf6 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -35,6 +35,7 @@ #include "wx/icon.h" #include "wx/cursor.h" #include "wx/settings.h" + #include "wx/intl.h" #endif #include "wx/module.h" @@ -154,8 +155,10 @@ void wxCursorRefData::Free() { if ( m_hCursor ) { +#ifndef __WXWINCE__ if ( m_destroyCursor ) ::DestroyCursor((HCURSOR)m_hCursor); +#endif m_hCursor = 0; } @@ -234,9 +237,11 @@ wxCursor::wxCursor(const wxString& filename, hcursor = ::LoadCursor(wxGetInstance(), filename); break; +#ifndef __WXWINCE__ case wxBITMAP_TYPE_CUR: hcursor = ::LoadCursorFromFile(filename); break; +#endif case wxBITMAP_TYPE_ICO: hcursor = wxBitmapToHCURSOR