git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19100
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
hcursor = ::LoadCursorFromFile(filename);
break;
hcursor = ::LoadCursorFromFile(filename);
break;
- case wxBITMAP_TYPE_ICO:
#if wxUSE_RESOURCE_LOADING_IN_MSW
#if wxUSE_RESOURCE_LOADING_IN_MSW
+ case wxBITMAP_TYPE_ICO:
hcursor = IconToCursor((wxChar *)filename.c_str(),
wxGetInstance(),
hotSpotX, hotSpotY,
NULL, NULL);
hcursor = IconToCursor((wxChar *)filename.c_str(),
wxGetInstance(),
hotSpotX, hotSpotY,
NULL, NULL);
-#endif // wxUSE_RESOURCE_LOADING_IN_MSW
break;
case wxBITMAP_TYPE_BMP:
{
break;
case wxBITMAP_TYPE_BMP:
{
-#if wxUSE_RESOURCE_LOADING_IN_MSW
HBITMAP hBitmap = 0;
HPALETTE hPalette = 0;
if ( wxReadDIB((wxChar *)filename.c_str(), &hBitmap, &hPalette) )
HBITMAP hBitmap = 0;
HPALETTE hPalette = 0;
if ( wxReadDIB((wxChar *)filename.c_str(), &hBitmap, &hPalette) )
DeleteObject(hBitmap);
}
else
DeleteObject(hBitmap);
}
else
-#endif // wxUSE_RESOURCE_LOADING_IN_MSW
{
hcursor = NULL;
}
}
break;
{
hcursor = NULL;
}
}
break;
+#endif // wxUSE_RESOURCE_LOADING_IN_MSW
default:
wxFAIL_MSG( _T("unknown cursor resource type") );
default:
wxFAIL_MSG( _T("unknown cursor resource type") );