#include #include class myApp : public wxApp { public: bool OnInit(void); int OnExit(void); }; IMPLEMENT_APP(myApp) bool myApp :: OnInit(){ wxFrame* frame = new wxFrame(NULL, wxID_ANY, wxT("blah blah")); wxBoxSizer* sizer = new wxBoxSizer( wxHORIZONTAL ); wxNotebook* notebook = new wxNotebook(frame, wxID_ANY); //inner notebook wxNotebook* innerNotebook = new wxNotebook(notebook, wxID_ANY); //some pages to it innerNotebook->AddPage(new wxPanel(innerNotebook), wxT("one")); innerNotebook->AddPage(new wxPanel(innerNotebook), wxT("two")); innerNotebook->AddPage(new wxPanel(innerNotebook), wxT("three")); notebook->AddPage(innerNotebook, wxT("notebook")); notebook->AddPage(new wxPanel(notebook), wxT("empty one")); notebook->AddPage(new wxPanel(notebook), wxT("empty two")); sizer->Add(notebook, 1, wxEXPAND | wxALL); frame->SetSizer(sizer); frame->Show(); this->SetTopWindow(frame); return true; } int myApp :: OnExit(){ return 0; }