#if wxUSE_NOTEBOOK
#ifndef WX_PRECOMP
- #include "wx/notebook.h"
- #include "wx/imaglist.h"
#endif //WX_PRECOMP
+#include "wx/imaglist.h"
+#include "wx/notebook.h"
+
// ============================================================================
// implementation
// ============================================================================
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.RemoveAt(nPage);
+
+ return pageRemoved;
+}
+
int wxNotebookBase::GetNextPage(bool forward) const
{
int nPage;