]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcclient.cpp
Include wx/statusbr.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / src / mac / carbon / dcclient.cpp
index 24e5d95e30e9234b734082559f5b3dc67c3dc2da..6621fbe33b6733196ea62ccc8a4202836a0270b0 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/log.h"
+    #include "wx/window.h"
+    #include "wx/dcmemory.h"
+    #include "wx/settings.h"
 #endif
 
-#include "wx/dcmemory.h"
 #include "wx/region.h"
-#include "wx/window.h"
 #include "wx/toplevel.h"
-#include "wx/settings.h"
 #include "wx/math.h"
 #include "wx/mac/private.h"
 
@@ -75,7 +75,11 @@ static wxBrush MacGetBackgroundBrush( wxWindow* window )
                 break ;
             }
 
-            if ( parent->IsKindOf( CLASSINFO( wxNotebook ) ) || parent->IsKindOf( CLASSINFO( wxTabCtrl ) ) )
+            if ( parent->IsKindOf( CLASSINFO( wxNotebook ) )
+#if wxUSE_TAB_DIALOG
+                 || parent->IsKindOf( CLASSINFO( wxTabCtrl ) )
+#endif // wxUSE_TAB_DIALOG
+                )
             {
                 Rect extent = { 0 , 0 , 0 , 0 } ;
                 int x , y ;