]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/themes/metal.cpp
added wxDCTextColourChanger ctor that allows using the class in the same way other...
[wxWidgets.git] / src / univ / themes / metal.cpp
index e18104660c921b4bad3448e47585adb6378f3fdf..af2b79fd60bc683595c71bda1759dc565d7533d2 100644 (file)
     #pragma hdrstop
 #endif
 
+#include "wx/univ/theme.h"
+
+#if wxUSE_THEME_METAL
+
 #ifndef WX_PRECOMP
     #include "wx/timer.h"
     #include "wx/intl.h"
@@ -55,7 +59,6 @@
 #include "wx/univ/inpcons.h"
 #include "wx/univ/inphand.h"
 #include "wx/univ/colschem.h"
-#include "wx/univ/theme.h"
 
 // wxMetalRenderer: draw the GUI elements in Metal style
 // ----------------------------------------------------------------------------
@@ -591,3 +594,5 @@ void wxMetalRenderer::DrawMetal(wxDC &dc, const wxRect &rect )
        dc.DrawRectangle( rect.x, y, rect.width, 1 );
     }
 }
+
+#endif // wxUSE_THEME_METAL