X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bae4332e74923585bc0843f70bfc11e9759c33b..21dfc16274cca711671755799f8400e87395bca5:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index cb09470b78..1f97d497b8 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -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,