// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
{
// GTK sets GtkNotebook.cur_page to NULL before sending the switch page
// event so we have to store the selection internally
{
// GTK sets GtkNotebook.cur_page to NULL before sending the switch page
// event so we have to store the selection internally
wxCHECK_MSG( win->GetParent() == this, FALSE,
wxT("Can't add a page whose parent is not the notebook!") );
wxCHECK_MSG( win->GetParent() == this, FALSE,
wxT("Can't add a page whose parent is not the notebook!") );
_T("invalid page index in wxNotebookPage::InsertPage()") );
/* don't receive switch page during addition */
_T("invalid page index in wxNotebookPage::InsertPage()") );
/* don't receive switch page during addition */