m_windowId = id == -1 ? NewControlId() : id;
- // colors and font
- m_backgroundColour = wxColour(GetSysColor(COLOR_BTNFACE));
- m_foregroundColour = *wxBLACK ;
-
// style
m_windowStyle = style;
return TRUE;
}
+// remove one page from the notebook, without deleting the window
+bool wxNotebook::RemovePage(int nPage)
+{
+ wxCHECK( IS_VALID_PAGE(nPage), FALSE );
+
+ m_aPages.Remove(nPage);
+
+ return TRUE;
+}
+
// remove all pages
bool wxNotebook::DeleteAllPages()
{
SetSelection(nSel);
// fit the notebook page to the tab control's display area
- int w, hl
+ int w, h;
GetSize(&w, &h);
- uint nCount = m_aPages.Count();
- for ( uint nPage = 0; nPage < nCount; nPage++ ) {
+ unsigned int nCount = m_aPages.Count();
+ for ( unsigned int nPage = 0; nPage < nCount; nPage++ ) {
wxNotebookPage *pPage = m_aPages[nPage];
pPage->SetSize(0, 0, w, h);
if ( pPage->GetAutoLayout() )
m_nSelection = nSel;
}
+void wxNotebook::SetTabSize(const wxSize& sz)
+{
+ // TODO
+}
+