]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/winuniv.cpp
respect wxBU_NOTEXT style in wxButton
[wxWidgets.git] / src / univ / winuniv.cpp
index 41b166cc4d8032e0d1537e58d532b9c6d39bf734..fdcd178c50fdff2a708798cc8ffdf806cb20a8c5 100644 (file)
     #include "wx/menu.h"
     #include "wx/frame.h"
     #include "wx/log.h"
+    #include "wx/button.h"
 #endif // WX_PRECOMP
 
 #include "wx/univ/colschem.h"
 #include "wx/univ/renderer.h"
 #include "wx/univ/theme.h"
 
+
 #if wxUSE_CARET
     #include "wx/caret.h"
 #endif // wxUSE_CARET
 
-// turn Refresh() debugging on/off
-#define WXDEBUG_REFRESH
-
-#ifndef __WXDEBUG__
-    #undef WXDEBUG_REFRESH
+#if wxDEBUG_LEVEL >= 2
+    // turn Refresh() debugging on/off
+    #define WXDEBUG_REFRESH
 #endif
 
 #if defined(WXDEBUG_REFRESH) && defined(__WXMSW__) && !defined(__WXMICROWIN__)