]> git.saurik.com Git - wxWidgets.git/commitdiff
Try to find comctl32.dll version even if we don't have shlwapi.h available,
authorJulian Smart <julian@anthemion.co.uk>
Thu, 14 Apr 2005 15:12:16 +0000 (15:12 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 14 Apr 2005 15:12:16 +0000 (15:12 +0000)
otherwise the version is wrongly guessed and we can end up with bad
toolbar backgrounds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/app.cpp

index 9ee0700538ddb27b0260269ff649b9c1d1d96ffb..8d6c1c67ccd10a40cfafc9315048b30171f4c24a 100644 (file)
@@ -612,7 +612,17 @@ int wxApp::GetComCtl32Version()
         // if so, then we can check for the version
         if ( dllComCtl32.IsLoaded() )
         {
-#ifdef DLLVER_PLATFORM_WINDOWS
+#ifndef DLLVER_PLATFORM_WINDOWS
+                       typedef struct _DllVersionInfo
+                       {
+                               DWORD cbSize;
+                               DWORD dwMajorVersion;                   // Major version
+                               DWORD dwMinorVersion;                   // Minor version
+                               DWORD dwBuildNumber;                    // Build number
+                               DWORD dwPlatformID;                     // DLLVER_PLATFORM_*
+                       } DLLVERSIONINFO;
+                       typedef HRESULT (CALLBACK* DLLGETVERSIONPROC)(DLLVERSIONINFO *);
+#endif
             // try to use DllGetVersion() if available in _headers_
             wxDYNLIB_FUNCTION( DLLGETVERSIONPROC, DllGetVersion, dllComCtl32 );
             if ( pfnDllGetVersion )
@@ -634,7 +644,7 @@ int wxApp::GetComCtl32Version()
                                         dvi.dwMinorVersion;
                 }
             }
-#endif
+//#endif
 
             // if DllGetVersion() is unavailable either during compile or
             // run-time, try to guess the version otherwise