+ Layout();
+
+ this->Centre(wxBOTH);
+}
+
+BEGIN_EVENT_TABLE(MyFrame, wxFrame)
+ EVT_BUTTON(wxID_OK, MyFrame::OnOK)
+ EVT_BUTTON(wxID_CANCEL, MyFrame::OnOK)
+ EVT_SIZE(MyFrame::OnSize)
+END_EVENT_TABLE()
+
+MyFrame::MyFrame(wxFrame* parent, const wxWindowID id, const wxString& title,
+ const wxPoint& pos, const wxSize& size, const long windowStyle):
+ wxFrame(parent, id, title, pos, size, windowStyle)
+{
+ m_panel = (wxTabbedPanel*) NULL;
+ m_view = (wxPanelTabView*) NULL;
+ Init();
+}
+
+void MyFrame::OnOK(wxCommandEvent& WXUNUSED(event) )
+{
+ this->Destroy();
+}
+
+void MyFrame::OnCloseWindow(wxCloseEvent& WXUNUSED(event) )
+{
+ this->Destroy();
+}
+
+void MyFrame::Init(void)
+{
+ m_panel = new wxTabbedPanel(this, -1);