Attempt to make wxWindows play better with XP themes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6,10 +6,29 @@
|
||||
* __stdcall calling convention
|
||||
*/
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma implementation "uxtheme.h"
|
||||
#endif
|
||||
|
||||
// For compilers that support precompilation, includes "wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
||||
#ifndef WX_PRECOMP
|
||||
#include "wx/app.h"
|
||||
#include "wx/toplevel.h"
|
||||
#include "wx/string.h"
|
||||
#include "wx/log.h"
|
||||
#endif //WX_PRECOMP
|
||||
|
||||
#if wxUSE_UXTHEME
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include "wx/msw/winundef.h"
|
||||
#include "wx/wx.h"
|
||||
#include "wx/msw/uxtheme.h"
|
||||
#include "wx/msw/private.h"
|
||||
#include "wx/app.h" // for GetComCtl32Version
|
||||
@@ -45,6 +64,11 @@ wxUxThemeEngine* wxUxThemeEngine::wxInitUxThemeEngine()
|
||||
return pThemeEngine ;
|
||||
}
|
||||
|
||||
wxUxThemeEngine* wxUxThemeEngine::Get()
|
||||
{
|
||||
return g_pThemeEngine;
|
||||
}
|
||||
|
||||
#ifdef WXU_USE_WXMODULE
|
||||
class wxUxThemeModule : public wxModule
|
||||
{
|
||||
@@ -245,3 +269,6 @@ wxUxThemeEngine::~wxUxThemeEngine()
|
||||
ResetFunctionPointers() ;
|
||||
}
|
||||
|
||||
#endif
|
||||
// wxUSE_UXTHEME
|
||||
|
||||
|
Reference in New Issue
Block a user