]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Only generate a makefile for the debugrpt sample when wxUSE_ON_FATAL_EXCEPTION=1
[wxWidgets.git] / src / msw / notebook.cpp
index cb09470b78e15213b8bef66631b46a597ea10a90..1f97d497b83f509404e2e37d0286a548d4ac97cb 100644 (file)
@@ -754,11 +754,6 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
 
 void wxNotebook::OnSize(wxSizeEvent& event)
 {
-#if wxUSE_UXTHEME
-    // background bitmap size has changed, update the brush using it too
-    UpdateBgBrush();
-#endif // wxUSE_UXTHEME
-
     if ( GetPageCount() == 0 )
     {
         // Prevents droppings on resize, but does cause some flicker
@@ -801,6 +796,11 @@ void wxNotebook::OnSize(wxSizeEvent& event)
         }
     }
 
+#if wxUSE_UXTHEME
+    // background bitmap size has changed, update the brush using it too
+    UpdateBgBrush();
+#endif // wxUSE_UXTHEME
+
     TabCtrl_AdjustRect(m_hwnd, false, &rc);
 
     int width = rc.right - rc.left,