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;
pPage->SetSize(rc.left, rc.top, width, height);
}
-#if wxUSE_UXTHEME
- UpdateBgBrush();
-#endif // wxUSE_UXTHEME
-
event.Skip();
}