#if _WIN32_IE >= 0x0300 && \
(!defined(__MINGW32__) || wxCHECK_W32API_VERSION( 2, 0 )) && \
- !defined(__CYGWIN__)
+ !defined(__CYGWIN__) && !defined(__WXWINCE__)
#include <shlwapi.h>
#endif
// ---------------------------------------------------------------------------
extern wxList WXDLLEXPORT wxPendingDelete;
-#ifndef __WXMICROWIN__
+
+#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
extern void wxSetKeyboardHook(bool doIt);
#endif
// program under Win9x w/o MSLU emulation layer - if so, abort right now
// as it has no chance to work
#if wxUSE_UNICODE && !wxUSE_UNICODE_MSLU
- if ( wxGetOsVersion() != wxWINDOWS_NT )
+ if ( wxGetOsVersion() != wxWINDOWS_NT && wxGetOsVersion() != wxWINDOWS_CE )
{
// note that we can use MessageBoxW() as it's implemented even under
// Win9x - OTOH, we can't use wxGetTranslation() because the file APIs
::MessageBox
(
NULL,
- _T("This program uses Unicode and requires Windows NT/2000/XP.\nProgram aborted."),
+ _T("This program uses Unicode and requires Windows NT/2000/XP/CE.\nProgram aborted."),
_T("wxWindows Fatal Error"),
MB_ICONERROR | MB_OK
);
#if wxUSE_OLE
// we need to initialize OLE library
+#ifdef __WXWINCE__
+ if ( FAILED(::CoInitializeEx(NULL, COINIT_MULTITHREADED)) )
+ wxLogError(_("Cannot initialize OLE"));
+#else
if ( FAILED(::OleInitialize(NULL)) )
wxLogError(_("Cannot initialize OLE"));
#endif
+#endif
#endif // wxUSE_OLE
RegisterWindowClasses();
-#ifndef __WXMICROWIN__
+#if defined(__WXMICROWIN__) && !defined(__WXWINCE__)
// Create the brush for disabling bitmap buttons
LOGBRUSH lb;
if (wxDummyChar) wxDummyChar++;
#endif
-#ifndef __WXMICROWIN__
+#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
wxSetKeyboardHook(TRUE);
#endif
void wxApp::CleanUp()
{
-#ifndef __WXMICROWIN__
+#if !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
wxSetKeyboardHook(FALSE);
#endif
::DeleteObject( wxDisableButtonBrush );
#if wxUSE_OLE
+#ifdef __WXWINCE__
+ ::CoUninitialize();
+#else
::OleUninitialize();
+#endif
#endif
// for an EXE the classes are unregistered when it terminates but DLL may
wxDC::ClearCache();
#endif // wxUSE_DC_CACHEING
+ // Now done in ProcessIdle()
+#if 0
// Send OnIdle events to all windows
if ( SendIdleEvents() )
{
// idle events
event.RequestMore(TRUE);
}
+#endif
wxIsInOnIdleFlag = FALSE;
}
/* static */
int wxApp::GetComCtl32Version()
{
-#ifdef __WXMICROWIN__
+#if defined(__WXMICROWIN__) || defined(__WXWINCE__)
return 0;
#else
// cache the result