projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8fe8a9
)
(Flickery) fix for droppings when there are no notebook pages
author
Julian Smart
<julian@anthemion.co.uk>
Fri, 18 Mar 2005 21:38:09 +0000
(21:38 +0000)
committer
Julian Smart
<julian@anthemion.co.uk>
Fri, 18 Mar 2005 21:38:09 +0000
(21:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32906
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
src/msw/notebook.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/msw/notebook.cpp
b/src/msw/notebook.cpp
index 3c174fd922aaf3bdd3bba1f9798861c5323e21a8..49436dcb63d121b9cce40b30743d8b1ed9dba1e0 100644
(file)
--- 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;