]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/cursor.cpp
don't update m_iconized in IsIconized(), this can break wxFrame::HandleSize() logic...
[wxWidgets.git] / src / msw / cursor.cpp
index 8705abeeeaa0d18c0b84f0efcc2c111950a46bfe..3a6a3e9e80849b49cae25b425bf97ef49f171915 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "cursor.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -213,11 +209,15 @@ wxCursor::wxCursor(const wxImage& image)
     HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized),
                                          hotSpotX, hotSpotY );
 
+#if wxUSE_WXDIB
     if ( !hcursor )
     {
         wxLogWarning(_("Failed to create cursor."));
         return;
     }
+#else
+    HCURSOR hcursor = 0;
+#endif                                         
 
     m_refData = new wxCursorRefData(hcursor, true /* delete it later */);
 }