+ pPage->SetSize(rect, wxSIZE_FORCE_EVENT);
+ }
+
+ // If the selected page is hidden at this point, the notebook
+ // has become visible for the first time after creation, and
+ // we postponed showing the page in ChangePage().
+ // So show the selected page now.
+ if ( m_nSelection != -1 )
+ {
+ wxNotebookPage *pPage = m_pages[m_nSelection];
+ if ( !pPage->IsShown() )
+ {
+ pPage->Show( true );
+ pPage->SetFocus();
+ }