From f11896042326e05d5c717159f9a7e6fd9f6bc404 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 14 Apr 2005 15:12:16 +0000 Subject: [PATCH] Try to find comctl32.dll version even if we don't have shlwapi.h available, 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 | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 9ee0700538..8d6c1c67cc 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -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 -- 2.47.2