///////////////////////////////////////////////////////////////////////////////
// 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
// ----------------------------------------------------------------------------
#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"
// ============================================================================
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
// 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
}
#endif // wxUSE_UXTHEME
-