]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Use the correct WXDLLEXPORT declaration.
[wxWidgets.git] / src / msw / notebook.cpp
index 3c174fd922aaf3bdd3bba1f9798861c5323e21a8..49436dcb63d121b9cce40b30743d8b1ed9dba1e0 100644 (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;