#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
- #include "wx/cursor.h"
+ #include "wx/bitmap.h"
#include "wx/icon.h"
+ #include "wx/cursor.h"
#endif
#include "wx/msw/private.h"
// wxWin macros
// ----------------------------------------------------------------------------
-#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxCursorBase)
-#endif
// ----------------------------------------------------------------------------
// wxCursorRefData
void wxCursorRefData::Free()
{
- if ( m_hCursor && m_destroyCursor )
- ::DestroyCursor((HCURSOR)m_hCursor);
+ if ( m_hCursor )
+ {
+ if ( m_destroyCursor )
+ ::DestroyCursor((HCURSOR)m_hCursor);
+
+ m_hCursor = 0;
+ }
}
// ----------------------------------------------------------------------------