#include "wx/cursor.h"
#ifndef WX_PRECOMP
- #include "wx/msw/missing.h" // IDC_HAND
#include "wx/utils.h"
#include "wx/app.h"
#include "wx/bitmap.h"
#endif
#include "wx/msw/private.h"
+#include "wx/msw/missing.h" // IDC_HAND
// define functions missing in MicroWin
#ifdef __WXMICROWIN__
HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized),
hotSpotX, hotSpotY );
-#if wxUSE_WXDIB
if ( !hcursor )
{
wxLogWarning(_("Failed to create cursor."));
return;
}
-#endif // wxUSE_WXDIB
m_refData = new wxCursorRefData(hcursor, true /* delete it later */);
}
-#endif
+#endif // wxUSE_IMAGE
wxCursor::wxCursor(const char WXUNUSED(bits)[],
int WXUNUSED(width),
switch ( kind )
{
case wxBITMAP_TYPE_CUR_RESOURCE:
- hcursor = ::LoadCursor(wxGetInstance(), filename);
+ hcursor = ::LoadCursor(wxGetInstance(), filename.fn_str());
break;
#ifndef __WXWINCE__
case wxBITMAP_TYPE_CUR:
- hcursor = ::LoadCursorFromFile(filename);
+ hcursor = ::LoadCursorFromFile(filename.fn_str());
break;
#endif