fixed deleting pages from the notebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -113,6 +113,17 @@ bool wxNotebookBase::DeletePage(int nPage)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
wxNotebookPage *wxNotebookBase::DoRemovePage(int nPage)
|
||||
{
|
||||
wxCHECK_MSG( nPage >= 0 && (size_t)nPage < m_pages.GetCount(), NULL,
|
||||
_T("invalid page index in wxNotebookBase::DoRemovePage()") );
|
||||
|
||||
wxNotebookPage *pageRemoved = m_pages[nPage];
|
||||
m_pages.Remove(nPage);
|
||||
|
||||
return pageRemoved;
|
||||
}
|
||||
|
||||
int wxNotebookBase::GetNextPage(bool forward) const
|
||||
{
|
||||
int nPage;
|
||||
|
Reference in New Issue
Block a user