X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07b8d7ecc39cfc6cce17156b91c6de1cfb56ce5b..a4a6984d5e2d8ae424cc8f31c223304b260d7670:/src/common/nbkbase.cpp?ds=sidebyside diff --git a/src/common/nbkbase.cpp b/src/common/nbkbase.cpp index da418151d9..436364a179 100644 --- a/src/common/nbkbase.cpp +++ b/src/common/nbkbase.cpp @@ -31,10 +31,11 @@ #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 // ============================================================================ @@ -113,6 +114,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.RemoveAt(nPage); + + return pageRemoved; +} + int wxNotebookBase::GetNextPage(bool forward) const { int nPage;