]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/uxtheme.cpp
compilation fixes for !USE_PCH
[wxWidgets.git] / src / msw / uxtheme.cpp
index d241efe2a3b6436f72e6e6b1186133ae94b1cbab..41dbe567269bf9407648f1a1801c4f84797c56cb 100644 (file)
@@ -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
+