X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0d1cb8cb298ae68754575cb65695ff9567a36899..1dde66dda68a3d712d2f4de0388c4bb3a3375b36:/src/msw/uxtheme.cpp diff --git a/src/msw/uxtheme.cpp b/src/msw/uxtheme.cpp index d241efe2a3..ae90474c7b 100644 --- a/src/msw/uxtheme.cpp +++ b/src/msw/uxtheme.cpp @@ -6,10 +6,30 @@ * __stdcall calling convention */ -#include +#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 + +#include "wx/module.h" + +#if wxUSE_UXTHEME + +#include "wx/msw/wrapwin.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 +65,11 @@ wxUxThemeEngine* wxUxThemeEngine::wxInitUxThemeEngine() return pThemeEngine ; } +wxUxThemeEngine* wxUxThemeEngine::Get() +{ + return g_pThemeEngine; +} + #ifdef WXU_USE_WXMODULE class wxUxThemeModule : public wxModule { @@ -245,3 +270,6 @@ wxUxThemeEngine::~wxUxThemeEngine() ResetFunctionPointers() ; } +#endif + // wxUSE_UXTHEME +