X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27d2dbbccadf25bb1d892fe1c4afbf74cf76bb36..d485bda109d5ef0fef36a3f737549e9b9f54baab:/src/msw/uxtheme.cpp diff --git a/src/msw/uxtheme.cpp b/src/msw/uxtheme.cpp index a28d3311e3..15655dcee5 100644 --- a/src/msw/uxtheme.cpp +++ b/src/msw/uxtheme.cpp @@ -1,22 +1,18 @@ /////////////////////////////////////////////////////////////////////////////// // Name: src/msw/uxtheme.cpp // Purpose: implements wxUxThemeEngine class: support for XP themes -// Author: +// Author: John Platts, Vadim Zeitlin // Modified by: // Created: 2003 // RCS-ID: $Id$ -// Copyright: (c) 2003 wxWidgets Dev-Team -// License: wxWindows licence +// Copyright: (c) 2003 John Platts, Vadim Zeitlin +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ // declarations // ============================================================================ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "uxtheme.h" -#endif - // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- @@ -35,10 +31,9 @@ #include "wx/toplevel.h" #include "wx/string.h" #include "wx/log.h" + #include "wx/module.h" #endif //WX_PRECOMP -#include "wx/module.h" - #include "wx/msw/uxtheme.h" // ============================================================================ @@ -108,7 +103,7 @@ wxUxThemeEngine* wxUxThemeEngine::Get() bool wxUxThemeEngine::Initialize() { - if ( wxTheApp->GetComCtl32Version() < 600 ) + if ( wxApp::GetComCtl32Version() < 600 ) { // not using theme-aware comctl32.dll anyhow, don't even try to use // themes @@ -118,11 +113,11 @@ bool wxUxThemeEngine::Initialize() // we're prepared to handle the errors wxLogNull noLog; - if ( !m_dllUxTheme.Load(_T("uxtheme.dll")) ) + if ( !m_dllUxTheme.Load(wxT("uxtheme.dll")) ) return false; #define RESOLVE_UXTHEME_FUNCTION(type, funcname) \ - funcname = (type)m_dllUxTheme.GetSymbol(_T(#funcname)); \ + funcname = (type)m_dllUxTheme.GetSymbol(wxT(#funcname)); \ if ( !funcname ) \ return false @@ -180,4 +175,3 @@ bool wxUxThemeEngine::Initialize() } #endif // wxUSE_UXTHEME -