This undocumented "private" class was used for various windows UxTheme functions which are available since WinXP. As wxWidgets 3.1 is XP+ it does not make sense anymore to load the theme functions dynamically.
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: src/msw/uxtheme.cpp
|
|
// Purpose: implements wxUxThemeEngine class: support for XP themes
|
|
// Author: John Platts, Vadim Zeitlin
|
|
// Modified by:
|
|
// Created: 2003
|
|
// Copyright: (c) 2003 John Platts, Vadim Zeitlin
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// ============================================================================
|
|
// declarations
|
|
// ============================================================================
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// headers
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// For compilers that support precompilation, includes "wx.h".
|
|
#include "wx/wxprec.h"
|
|
|
|
#ifdef __BORLANDC__
|
|
#pragma hdrstop
|
|
#endif
|
|
|
|
#if wxUSE_UXTHEME
|
|
|
|
#ifndef WX_PRECOMP
|
|
#include "wx/app.h"
|
|
#include "wx/toplevel.h"
|
|
#include "wx/string.h"
|
|
#include "wx/log.h"
|
|
#include "wx/module.h"
|
|
#endif //WX_PRECOMP
|
|
|
|
#include "wx/msw/uxtheme.h"
|
|
|
|
bool wxUxThemeIsActive()
|
|
{
|
|
return ::IsAppThemed() && ::IsThemeActive();
|
|
}
|
|
#else
|
|
bool wxUxThemeIsActive()
|
|
{
|
|
return false;
|
|
}
|
|
#endif // wxUSE_UXTHEME
|