Compilation fixes for wxMotif.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-08-21 12:38:26 +00:00
parent 66cb53f7a9
commit 64b090c72a
2 changed files with 9 additions and 2 deletions

View File

@@ -101,6 +101,8 @@ public:
// remove one page from the notebook, without deleting the page. // remove one page from the notebook, without deleting the page.
bool RemovePage(size_t nPage); bool RemovePage(size_t nPage);
bool RemovePage(wxNotebookPage* page); bool RemovePage(wxNotebookPage* page);
virtual wxWindow* DoRemovePage(size_t nPage);
// remove all pages // remove all pages
bool DeleteAllPages(); bool DeleteAllPages();
// the same as AddPage(), but adds it at the specified position // the same as AddPage(), but adds it at the specified position

View File

@@ -309,8 +309,13 @@ bool wxNotebook::DeletePage(wxNotebookPage* page)
return FALSE; return FALSE;
} }
// remove one page from the notebook
bool wxNotebook::RemovePage(size_t nPage) bool wxNotebook::RemovePage(size_t nPage)
{
return DoRemovePage(nPage) != NULL;
}
// remove one page from the notebook
wxWindow* wxNotebook::DoRemovePage(size_t nPage)
{ {
wxCHECK( IS_VALID_PAGE(nPage), FALSE ); wxCHECK( IS_VALID_PAGE(nPage), FALSE );
@@ -353,7 +358,7 @@ bool wxNotebook::RemovePage(size_t nPage)
RefreshLayout(FALSE); RefreshLayout(FALSE);
return TRUE; return pPage;
} }
bool wxNotebook::RemovePage(wxNotebookPage* page) bool wxNotebook::RemovePage(wxNotebookPage* page)