X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b554cf63711f985030c5d5f338f9614d158a8718..c27bcbd5a7cec9f03b15c69824da99c5bb75924a:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 3c174fd922..49436dcb63 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -744,6 +744,15 @@ void wxNotebook::OnSize(wxSizeEvent& event) UpdateBgBrush(); #endif // wxUSE_UXTHEME + if (GetPageCount() == 0) + { + // Prevents droppings on resize, but does cause some flicker + // when there are no pages. + Refresh(false); + event.Skip(); + return; + } + // fit all the notebook pages to the tab control's display area RECT rc;