]> git.saurik.com Git - wxWidgets.git/commitdiff
fix WinCE compilation: it doesn't know about SW_SHOWDEFAULT (#10216)
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Dec 2008 10:21:05 +0000 (10:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 Dec 2008 10:21:05 +0000 (10:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/utilscmn.cpp

index 43826ac40f3c51375ed4de09649459cef5e9b187..85e35c508236ead5b87218ade6eed99fde2c3fa6 100644 (file)
@@ -962,7 +962,11 @@ bool wxLaunchDefaultApplication(const wxString& document, int flags)
     WinStruct<SHELLEXECUTEINFO> sei;
     sei.lpFile = document.wx_str();
     sei.lpVerb = _T("open");
+#ifdef __WXWINCE__
+    sei.nShow = SW_SHOWNORMAL; // SW_SHOWDEFAULT not defined under CE (#10216)
+#else
     sei.nShow = SW_SHOWDEFAULT;
+#endif
 
     // avoid Windows message box in case of error for consistency with
     // wxLaunchDefaultBrowser() even if don't show the error ourselves in this