git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37213
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Always rely on GetBestSize, which will look at all the pages
virtual void SetInitialBestSize(const wxSize& WXUNUSED(size)) { }
+ // Lay out controls
+ void DoSize();
+
// the array of all pages of this control
wxArrayPages m_pages;
return rectPage;
}
-void wxBookCtrlBase::OnSize(wxSizeEvent& event)
+// Lay out controls
+void wxBookCtrlBase::DoSize()
{
- event.Skip();
-
if ( !m_bookctrl )
{
// we're not fully created yet or OnSize() should be hidden by derived class
}
}
+void wxBookCtrlBase::OnSize(wxSizeEvent& event)
+{
+ event.Skip();
+
+ DoSize();
+}
+
wxSize wxBookCtrlBase::GetControllerSize() const
{
if(!m_bookctrl)