]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/bookctrl.cpp
SetBackgroundStyle(wxBG_STYLE_CUSTOM) can now be used to optimize
[wxWidgets.git] / src / common / bookctrl.cpp
index bf8a83343440d814fcd28e01348a0eb7a880554d..508befd1bc48f0a04d56c52c9e109e68f0ef7b69 100644 (file)
@@ -151,7 +151,8 @@ wxBookCtrl::InsertPage(size_t nPage,
                  _T("invalid page index in wxBookCtrl::InsertPage()") );
 
     m_pages.Insert(page, nPage);
-
+    InvalidateBestSize();
+    
     return true;
 }
 
@@ -173,6 +174,7 @@ wxWindow *wxBookCtrl::DoRemovePage(size_t nPage)
 
     wxWindow *pageRemoved = m_pages[nPage];
     m_pages.RemoveAt(nPage);
+    InvalidateBestSize();
 
     return pageRemoved;
 }