#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
// ============================================================================
// this was just taken from wxNotebookSizer::CalcMin() and is, of
// course, totally bogus - just like the original code was
wxSize sizeTotal = sizePage;
+
if ( HasFlag(wxNB_LEFT) || HasFlag(wxNB_RIGHT) )
+ {
sizeTotal.x += 90;
+ sizeTotal.y += 10;
+ }
else
+ {
+ sizeTotal.x += 10;
sizeTotal.y += 40;
+ }
return sizeTotal;
}
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;