#include "wx/msw/wrapwin.h"
-
#if defined (__WXWINCE__)
#include <wingdi.h> // RGB, COLORREF
+ #define ERRFALSE(x)
#include <winuser.h> // Global Namespaces ::GetKeyState, ::GetWindowRect
+ #include "wx/msw/winundef.h"
#endif
#ifdef __WXWINCE__
#include <winbase.h>
+#if _WIN32_WCE <= 211
#define GlobalAlloc LocalAlloc
#define GlobalFree LocalFree
#define GlobalLock(mem) mem
#define GHND LPTR
#define GMEM_MOVEABLE 0
#define GMEM_SHARE 0
+#endif
#if 0
// Default is 1
//
// 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
#define wxUSE_STREAMS 1
#undef IsMaximized
inline BOOL IsMaximized(HWND hwnd)
{
+#ifdef __WXWINCE__
+ return FALSE;
+#else
return IsZoomed(hwnd);
+#endif
}
#endif
#undef GetFirstChild
inline HWND GetFirstChild(HWND hwnd)
{
+#ifdef __WXWINCE__
+ return 0;
+#else
return GetTopWindow(hwnd);
+#endif
}
#endif
#ifdef __WXWINCE__
WXDLLIMPEXP_BASE char* strdup(const char* s);
WXDLLIMPEXP_BASE void *calloc( size_t num, size_t size );
+
+#if _WIN32_WCE <= 211
WXDLLIMPEXP_BASE int isspace(int c);
WXDLLIMPEXP_BASE int isascii( int c );
#endif
+#endif
// ----------------------------------------------------------------------------
// multibyte to wide char conversion functions and macros
bool wxAppBase::SendIdleEvents(wxWindow* win, wxIdleEvent& event)
{
bool needMore = FALSE;
-
+
win->OnInternalIdle();
+
if (wxIdleEvent::CanSend(win))
{
event.SetEventObject(win);
if (event.MoreRequested())
needMore = TRUE;
}
-
wxWindowList::compatibility_iterator node = win->GetChildren().GetFirst();
while ( node )
{
}
#endif
-#if (defined(__MWERKS__) && !defined(__MACH__)) || defined(__WXWINCE__)
+#if (defined(__MWERKS__) && !defined(__MACH__)) || (defined(__WXWINCE__) && _WIN32_WCE <= 211)
+
int isascii( int c )
{
return ( c >= 0 && c < 128 );
return ptr;
}
+#if (_WIN32_WCE <= 211)
int isspace(int c)
{
return (c == ' ');
}
#endif
+
+#endif
#include "wx/icon.h"
#endif
+#include "wx/msw/private.h" // needs to be before #include <commdlg.h>
+
#include "wx/sysopt.h"
#include "wx/dcprint.h"
#include "wx/module.h"
#include <string.h>
#include <math.h>
-#include "wx/msw/private.h" // needs to be before #include <commdlg.h>
-
#if wxUSE_COMMON_DIALOGS && !defined(__WXMICROWIN__)
#include <commdlg.h>
#endif