Added Bil Simser to wxBook page; fixed bug in notebook when deleting pages

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-12-28 12:45:48 +00:00
parent 3f399a69cc
commit 9b6b575004
2 changed files with 9 additions and 0 deletions

View File

@@ -314,6 +314,9 @@ bool wxNotebook::DeletePage(int nPage)
// no selection if the notebook became empty
m_nSelection = -1;
}
else
m_nSelection = TabCtrl_GetCurSel(m_hwnd);
return TRUE;
}
@@ -329,6 +332,8 @@ bool wxNotebook::RemovePage(int nPage)
if ( m_aPages.IsEmpty() )
m_nSelection = -1;
else
m_nSelection = TabCtrl_GetCurSel(m_hwnd);
return TRUE;
}