]> git.saurik.com Git - wxWidgets.git/commitdiff
invalidate bg brush in the beginning of OnSize() to avoid using outdated brush for...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Jan 2005 17:33:33 +0000 (17:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 Jan 2005 17:33:33 +0000 (17:33 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/notebook.cpp

index e6a0aaae7cce0a9adc26751f04def6307efc0f3b..ccbbbfc62e80550549aaaf24f11deeb4a4759351 100644 (file)
@@ -679,6 +679,10 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const
 
 void wxNotebook::OnSize(wxSizeEvent& event)
 {
+#if wxUSE_UXTHEME
+  UpdateBgBrush();
+#endif // wxUSE_UXTHEME
+
   // fit the notebook page to the tab control's display area
   RECT rc;
   rc.left = rc.top = 0;
@@ -717,10 +721,6 @@ void wxNotebook::OnSize(wxSizeEvent& event)
     pPage->SetSize(rc.left, rc.top, width, height);
   }
 
-#if wxUSE_UXTHEME
-  UpdateBgBrush();
-#endif // wxUSE_UXTHEME
-
   event.Skip();
 }