wxLogWarning(_("Failed to create cursor."));
return;
}
-#else
- HCURSOR hcursor = 0;
-#endif
+#endif // wxUSE_WXDIB
m_refData = new wxCursorRefData(hcursor, true /* delete it later */);
}
// other wxCursor functions
// ----------------------------------------------------------------------------
-bool wxCursor::operator==(const wxCursor& cursor) const
-{
- if ( !m_refData )
- return !cursor.m_refData;
-
- return cursor.m_refData &&
- ((wxCursorRefData *)m_refData)->m_hCursor ==
- ((wxCursorRefData *)cursor.m_refData)->m_hCursor;
-}
-
wxGDIImageRefData *wxCursor::CreateData() const
{
return new wxCursorRefData;