// Modified by:
// Created: 2003
// RCS-ID: $Id$
-// Copyright: (c) 2003 wxWindows Dev-Team
-// License: wxWindows license
+// Copyright: (c) 2003 wxWidgets Dev-Team
+// License: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "uxtheme.h"
#endif
#include "wx/module.h"
-#include "wx/msw/wrapwin.h"
-
#include "wx/msw/uxtheme.h"
-#include "wx/msw/private.h"
// ============================================================================
// wxUxThemeModule
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;
+
if ( !m_dllUxTheme.Load(_T("uxtheme.dll")) )
return false;