+ if (m_notebook->GetPageCount() > 0)
+ m_notebook->DeletePage( m_notebook->GetPageCount()-1 );
+
+/*
+ if (test)
+ {
+ m_notebook->AddPage( test, "Readded" );
+ test = NULL;
+ }
+ else
+ {
+ test = m_notebook->GetPage( m_notebook->GetPageCount()-1 );
+ m_notebook->RemovePage( m_notebook->GetPageCount()-1 );
+ }
+*/