// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "notebook.h"
-#endif
-
#ifdef __VMS
#pragma message disable unscomzer
#endif
// ----------------------------------------------------------------------------
// check that the page index is valid
-#define IS_VALID_PAGE(nPage) (((nPage) >= 0) && ((nPage) < GetPageCount()))
+#define IS_VALID_PAGE(nPage) ((nPage) < GetPageCount())
// ----------------------------------------------------------------------------
// event table
m_tabView->Draw(dc);
}
+wxSize wxNotebook::CalcSizeFromPage(const wxSize& sizePage) const
+{
+ // MBN: since the total tab height is really a function of the
+ // width, this should really call
+ // GetTotalTabHeightPretendingWidthIs(), but the current
+ // implementation will suffice, provided the wxNotebook has been
+ // created with a sensible initial width.
+ return wxSize( sizePage.x + 12,
+ sizePage.y + m_tabView->GetTotalTabHeight() + 6 + 4 );
+}
+
wxRect wxNotebook::GetAvailableClientSize()
{
int cw, ch;