(Flickery) fix for droppings when there are no notebook pages

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-03-18 21:38:09 +00:00
parent f8fe8a9e82
commit f7eaa62f23

View File

@@ -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;