]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/uxtheme.cpp
Applied patch [ 774837 ] OGL wxLineShape::HitTest: smaller region
[wxWidgets.git] / src / msw / uxtheme.cpp
index d241efe2a3b6436f72e6e6b1186133ae94b1cbab..ae90474c7b743b3ad8e14ca6646c849eda55e82f 100644 (file)
@@ -6,10 +6,30 @@
  * __stdcall calling convention
  */
 
-#include <windows.h>
+#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
+