]> git.saurik.com Git - wxWidgets.git/commitdiff
always return 471 from wxApp::GetComCtl32Version() under CE as its commctrl.dll inclu...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2008 23:28:43 +0000 (23:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Feb 2008 23:28:43 +0000 (23:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/app.h
src/msw/app.cpp

index 601c4ab932d6eaa63fe0492420440173760aec2b..c9703b11d84f2907f2562972db91c14f259f1057 100644 (file)
@@ -81,6 +81,26 @@ protected:
     DECLARE_NO_COPY_CLASS(wxApp)
 };
 
+#ifdef __WXWINCE__
+
+// under CE provide a dummy implementation of GetComCtl32Version() returning
+// the value passing all ">= 470" tests (which are the only ones used in our
+// code currently) as commctrl.dll under CE 2.0 and later support comctl32.dll
+// functionality
+inline int wxApp::GetComCtl32Version()
+{
+    return 471;
+}
+
+// this is not currently used at all under CE so it's not really clear what do
+// we need to return from here
+inline int wxApp::GetShell32Version()
+{
+    return 0;
+}
+
+#endif // __WXWINCE__
+
 // ----------------------------------------------------------------------------
 // MSW-specific wxEntry() overload and IMPLEMENT_WXWIN_MAIN definition
 // ----------------------------------------------------------------------------
index 2d46ea6145ab029aa6e90e7a15837c97f60e0470..474e8e4839d96e626f744cc3cfcfa652144d34cf 100644 (file)
@@ -607,6 +607,9 @@ void wxApp::OnQueryEndSession(wxCloseEvent& event)
 // system DLL versions
 // ----------------------------------------------------------------------------
 
+// these functions have trivial inline implementations for CE
+#ifndef __WXWINCE__
+
 #if wxUSE_DYNLIB_CLASS
 
 namespace
@@ -742,6 +745,8 @@ int wxApp::GetShell32Version()
 
 #endif // wxUSE_DYNLIB_CLASS/!wxUSE_DYNLIB_CLASS
 
+#endif // !__WXWINCE__
+
 // ----------------------------------------------------------------------------
 // Yield to incoming messages
 // ----------------------------------------------------------------------------