Compile with EVC 3.0 2002
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,10 +16,11 @@
|
|||||||
|
|
||||||
#include "wx/msw/wrapwin.h"
|
#include "wx/msw/wrapwin.h"
|
||||||
|
|
||||||
|
|
||||||
#if defined (__WXWINCE__)
|
#if defined (__WXWINCE__)
|
||||||
#include <wingdi.h> // RGB, COLORREF
|
#include <wingdi.h> // RGB, COLORREF
|
||||||
|
#define ERRFALSE(x)
|
||||||
#include <winuser.h> // Global Namespaces ::GetKeyState, ::GetWindowRect
|
#include <winuser.h> // Global Namespaces ::GetKeyState, ::GetWindowRect
|
||||||
|
#include "wx/msw/winundef.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -555,6 +556,7 @@ WXDLLEXPORT void wxDrawLine(HDC hdc, int x1, int y1, int x2, int y2);
|
|||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
|
|
||||||
|
#if _WIN32_WCE <= 211
|
||||||
#define GlobalAlloc LocalAlloc
|
#define GlobalAlloc LocalAlloc
|
||||||
#define GlobalFree LocalFree
|
#define GlobalFree LocalFree
|
||||||
#define GlobalLock(mem) mem
|
#define GlobalLock(mem) mem
|
||||||
@@ -564,6 +566,7 @@ WXDLLEXPORT void wxDrawLine(HDC hdc, int x1, int y1, int x2, int y2);
|
|||||||
#define GHND LPTR
|
#define GHND LPTR
|
||||||
#define GMEM_MOVEABLE 0
|
#define GMEM_MOVEABLE 0
|
||||||
#define GMEM_SHARE 0
|
#define GMEM_SHARE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
||||||
|
@@ -244,7 +244,7 @@
|
|||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 unless you do plan to develop MT applications
|
// Recommended setting: 0 unless you do plan to develop MT applications
|
||||||
#define wxUSE_THREADS 1
|
#define wxUSE_THREADS 0
|
||||||
|
|
||||||
// If enabled (1), compiles wxWindows streams classes
|
// If enabled (1), compiles wxWindows streams classes
|
||||||
#define wxUSE_STREAMS 1
|
#define wxUSE_STREAMS 1
|
||||||
|
@@ -317,7 +317,11 @@
|
|||||||
#undef IsMaximized
|
#undef IsMaximized
|
||||||
inline BOOL IsMaximized(HWND hwnd)
|
inline BOOL IsMaximized(HWND hwnd)
|
||||||
{
|
{
|
||||||
|
#ifdef __WXWINCE__
|
||||||
|
return FALSE;
|
||||||
|
#else
|
||||||
return IsZoomed(hwnd);
|
return IsZoomed(hwnd);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -327,7 +331,11 @@
|
|||||||
#undef GetFirstChild
|
#undef GetFirstChild
|
||||||
inline HWND GetFirstChild(HWND hwnd)
|
inline HWND GetFirstChild(HWND hwnd)
|
||||||
{
|
{
|
||||||
|
#ifdef __WXWINCE__
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
return GetTopWindow(hwnd);
|
return GetTopWindow(hwnd);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -931,9 +931,12 @@ WXDLLIMPEXP_BASE int wxSystem(const wxChar *psz);
|
|||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
WXDLLIMPEXP_BASE char* strdup(const char* s);
|
WXDLLIMPEXP_BASE char* strdup(const char* s);
|
||||||
WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size );
|
WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size );
|
||||||
|
|
||||||
|
#if _WIN32_WCE <= 211
|
||||||
WXDLLIMPEXP_BASE int isspace(int c);
|
WXDLLIMPEXP_BASE int isspace(int c);
|
||||||
WXDLLIMPEXP_BASE int isascii( int c );
|
WXDLLIMPEXP_BASE int isascii( int c );
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// multibyte to wide char conversion functions and macros
|
// multibyte to wide char conversion functions and macros
|
||||||
|
@@ -238,6 +238,7 @@ bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event)
|
|||||||
bool needMore = FALSE;
|
bool needMore = FALSE;
|
||||||
|
|
||||||
win->OnInternalIdle();
|
win->OnInternalIdle();
|
||||||
|
|
||||||
if (wxIdleEvent::CanSend(win))
|
if (wxIdleEvent::CanSend(win))
|
||||||
{
|
{
|
||||||
event.SetEventObject(win);
|
event.SetEventObject(win);
|
||||||
@@ -246,7 +247,6 @@ bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event)
|
|||||||
if (event.MoreRequested())
|
if (event.MoreRequested())
|
||||||
needMore = TRUE;
|
needMore = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxWindowList::compatibility_iterator node = win->GetChildren().GetFirst();
|
wxWindowList::compatibility_iterator node = win->GetChildren().GetFirst();
|
||||||
while ( node )
|
while ( node )
|
||||||
{
|
{
|
||||||
|
@@ -1403,7 +1403,8 @@ char *strdup(const char *s)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined(__MWERKS__) && !defined(__MACH__)) || defined(__WXWINCE__)
|
#if (defined(__MWERKS__) && !defined(__MACH__)) || (defined(__WXWINCE__) && _WIN32_WCE <= 211)
|
||||||
|
|
||||||
int isascii( int c )
|
int isascii( int c )
|
||||||
{
|
{
|
||||||
return ( c >= 0 && c < 128 );
|
return ( c >= 0 && c < 128 );
|
||||||
@@ -1418,8 +1419,11 @@ void *calloc( size_t num, size_t size )
|
|||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (_WIN32_WCE <= 211)
|
||||||
int isspace(int c)
|
int isspace(int c)
|
||||||
{
|
{
|
||||||
return (c == ' ');
|
return (c == ' ');
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@@ -40,6 +40,8 @@
|
|||||||
#include "wx/icon.h"
|
#include "wx/icon.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/msw/private.h" // needs to be before #include <commdlg.h>
|
||||||
|
|
||||||
#include "wx/sysopt.h"
|
#include "wx/sysopt.h"
|
||||||
#include "wx/dcprint.h"
|
#include "wx/dcprint.h"
|
||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
@@ -52,8 +54,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "wx/msw/private.h" // needs to be before #include <commdlg.h>
|
|
||||||
|
|
||||||
#if wxUSE_COMMON_DIALOGS && !defined(__WXMICROWIN__)
|
#if wxUSE_COMMON_DIALOGS && !defined(__WXMICROWIN__)
|
||||||
#include <commdlg.h>
|
#include <commdlg.h>
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user