X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7f9fe7891d7a8f8fd24c7c7261c28cb2e8329a79..8f4d9fcd9a1133442aa733e978231b01956e641b:/src/msw/uxtheme.cpp?ds=sidebyside diff --git a/src/msw/uxtheme.cpp b/src/msw/uxtheme.cpp index dee239cd43..40a4195f6e 100644 --- a/src/msw/uxtheme.cpp +++ b/src/msw/uxtheme.cpp @@ -13,7 +13,7 @@ // declarations // ============================================================================ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "uxtheme.h" #endif @@ -108,6 +108,13 @@ wxUxThemeEngine* wxUxThemeEngine::Get() bool wxUxThemeEngine::Initialize() { + if ( wxTheApp->GetComCtl32Version() < 600 ) + { + // not using theme-aware comctl32.dll anyhow, don't even try to use + // themes + return false; + } + // we're prepared to handle the errors wxLogNull noLog;