First pass at adding MicroWindows support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-06-29 10:58:59 +00:00
parent 7ed4fab7be
commit 04ef50df3a
33 changed files with 985 additions and 65 deletions

View File

@@ -39,7 +39,9 @@
#include "wx/module.h"
#include "wx/msw/private.h"
#ifndef __WXMICROWIN__
#include "wx/msw/dib.h"
#endif
#if wxUSE_RESOURCE_LOADING_IN_MSW
#include "wx/msw/curico.h"
@@ -101,8 +103,10 @@ void wxCursorRefData::Free()
{
if ( m_hCursor )
{
#ifndef __WXMICROWIN__
if ( m_destroyCursor )
::DestroyCursor((HCURSOR)m_hCursor);
#endif
m_hCursor = 0;
}
@@ -128,6 +132,9 @@ wxCursor::wxCursor(const wxString& cursor_file,
long flags,
int hotSpotX, int hotSpotY)
{
#ifdef __WXMICROWIN__
m_refData = NULL;
#else
wxCursorRefData *refData = new wxCursorRefData;
m_refData = refData;
@@ -181,11 +188,16 @@ wxCursor::wxCursor(const wxString& cursor_file,
#if WXWIN_COMPATIBILITY_2
refData->SetOk();
#endif // WXWIN_COMPATIBILITY_2
#endif
}
// Cursors by stock number
wxCursor::wxCursor(int cursor_type)
{
#ifdef __WXMICROWIN__
m_refData = NULL;
#else
wxCursorRefData *refData = new wxCursorRefData;
m_refData = refData;
@@ -308,6 +320,7 @@ wxCursor::wxCursor(int cursor_type)
refData->m_hCursor = (WXHCURSOR) LoadCursor((HINSTANCE) NULL, IDC_ARROW);
break;
}
#endif
}
wxCursor::~wxCursor()
@@ -327,7 +340,9 @@ void wxSetCursor(const wxCursor& cursor)
{
if ( cursor.Ok() )
{
#ifndef __WXMICROWIN__
::SetCursor(GetHcursorOf(cursor));
#endif
if ( gs_globalCursor )
*gs_globalCursor = cursor;