make it possible to use this sample for wxListbook testing too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-08-21 23:12:41 +00:00
parent 5b5e4f325c
commit 4e62c3fd3b
2 changed files with 28 additions and 4 deletions

View File

@@ -380,7 +380,7 @@ void MyFrame::ReInitNotebook()
{
wxString str = notebook->GetPageText(n);
wxNotebookPage *page = m_notebook->CreatePage(str);
wxWindow *page = m_notebook->CreatePage(str);
m_notebook->AddPage(page, str, FALSE, m_notebook->GetIconIndex() );
}
@@ -400,7 +400,7 @@ void MyFrame::ReInitNotebook()
}
m_sizerNotebook = new wxNotebookSizer(m_notebook);
m_sizerNotebook = new wxBookCtrlSizer(m_notebook);
m_sizerTop->Add(m_sizerNotebook, 1, wxEXPAND | wxALL, 4);
m_sizerTop->Layout();
}