#include "wx/app.h"
#include "wx/cursor.h"
#include "wx/icon.h"
-#include "wx/resource.h"
#endif
#include "wx/os2/private.h"
+#include "wx/os2/wxrsc.h"
#include "wx/image.h"
#include "assert.h"
);
break;
+ case wxCURSOR_WATCH:
case wxCURSOR_WAIT:
pRefData->m_hCursor = (WXHCURSOR) ::WinQuerySysPointer( HWND_DESKTOP
,(ULONG)SPTR_WAIT
break;
case wxCURSOR_NO_ENTRY:
- pRefData->m_hCursor = (WXHCURSOR) ::WinLoadPointer( HWND_DESKTOP
- ,0
- ,(ULONG)wxCURSOR_NO_ENTRY
- );
+ pRefData->m_hCursor = (WXHCURSOR) ::WinQuerySysPointer( HWND_DESKTOP
+ ,(ULONG)SPTR_ILLEGAL
+ ,FALSE
+ );
break;
case wxCURSOR_LEFT_BUTTON:
);
break;
- case wxCURSOR_WATCH:
- pRefData->m_hCursor = (WXHCURSOR) ::WinLoadPointer( HWND_DESKTOP
- ,0
- ,(ULONG)wxCURSOR_WATCH
- );
- break;
-
case wxCURSOR_SPRAYCAN:
pRefData->m_hCursor = (WXHCURSOR) ::WinLoadPointer( HWND_DESKTOP
,0
);
break;
}
+ //
+ // No need to destroy the stock cursors
+ //
+ ((wxCursorRefData *)m_refData)->m_bDestroyCursor = FALSE;
} // end of wxCursor::wxCursor
// Global cursor setting