如下:
1、
#include <wx/notebook.h>
2、
wxNotebook *myNotebook = new wxNotebook( this, -1, wxDefaultPosition, wxSize(500, 500), wxNB_BOTTOM);
wxTextCtrl* notetext = new wxTextCtrl(myNotebook, -1);
myNotebook->AddPage( notetext, wxT("我的输入窗口") );
myNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), wxT("项目 2") );
myNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), wxT("项目 3") );
myNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), wxT("项目 4") );
myNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), wxT("项目 5") );
myNotebook->AddPage( new wxNotebookPage( myNotebook, -1 ), wxT("项目 6") );
myNotebook->Layout();