X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/360ae33f4392ebb8b625b8ef3b2542b58f8a3a6b..894d74dcc233b7f9a936767558f3e061593dd062:/src/msw/app.cpp?ds=sidebyside diff --git a/src/msw/app.cpp b/src/msw/app.cpp index b399d62aaa..84a91f04d7 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -68,6 +68,10 @@ #define wxUSE_OLE 0 #endif // broken compilers +#if defined(__POCKETPC__) || defined(__SMARTPHONE__) +#include +#endif + #if wxUSE_OLE #include #endif @@ -279,7 +283,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv) // 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 && wxGetOsVersion() != wxWINDOWS_CE ) + if ( wxGetOsVersion() != wxWINDOWS_NT && wxGetOsVersion() != wxWINDOWS_CE && wxGetOsVersion() != wxWINDOWS_SMARTPHONE && wxGetOsVersion() != wxWINDOWS_POCKETPC ) { // note that we can use MessageBoxW() as it's implemented even under // Win9x - OTOH, we can't use wxGetTranslation() because the file APIs @@ -300,6 +304,10 @@ bool wxApp::Initialize(int& argc, wxChar **argv) InitCommonControls(); #endif // __WIN95__ +#if defined(__SMARTPHONE__) || defined(__POCKETPC__) + SHInitExtraControls(); +#endif + wxOleInitialize(); RegisterWindowClasses();