]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/cursor.cpp
Always send an erase event to satisfy some users...
[wxWidgets.git] / src / msw / cursor.cpp
index 0fda188e921337c83c9b323f952ca06b369868f4..09ab2ba32e6e7a8356dbe72eb43d6785d2d2bf75 100644 (file)
@@ -52,7 +52,7 @@
 // wxWin macros
 // ----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxCursorBase)
+IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxGDIObject)
 
 // ----------------------------------------------------------------------------
 // globals
@@ -96,7 +96,7 @@ wxCursorRefData::wxCursorRefData()
   m_width = 32;
   m_height = 32;
 
-  refData->m_destroyCursor = TRUE;
+  m_destroyCursor = TRUE;
 }
 
 void wxCursorRefData::Free()
@@ -315,10 +315,11 @@ wxCursor::wxCursor(int cursor_type)
       refData->m_hCursor = (WXHCURSOR) LoadCursor((HINSTANCE) NULL, IDC_ARROW);
       break;
   }
-#endif
 
   // no need to destroy the stock cursors
-  refData->m_destroyCursor = FALSE;
+  // TODO: check this
+  //m_refData->m_destroyCursor = FALSE;
+#endif
 }
 
 wxCursor::~wxCursor()