// wxWin macros
// ----------------------------------------------------------------------------
-IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxCursorBase)
+IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxGDIObject)
// ----------------------------------------------------------------------------
// globals
m_width = 32;
m_height = 32;
- m_destroyCursor = FALSE;
+ m_destroyCursor = TRUE;
}
void wxCursorRefData::Free()
#else
refData->m_hCursor = (WXHCURSOR) LoadCursor(wxGetInstance(), cursor_file);
#endif
- refData->m_destroyCursor = FALSE;
}
else if (flags == wxBITMAP_TYPE_CUR)
{
refData->m_hCursor = (WXHCURSOR) LoadCursor((HINSTANCE) NULL, IDC_ARROW);
break;
}
+
+ // no need to destroy the stock cursors
+ // TODO: check this
+ //m_refData->m_destroyCursor = FALSE;
#endif
}