diff --git a/TyroApp.cpp b/TyroApp.cpp index 1cba7c3..d13330c 100644 --- a/TyroApp.cpp +++ b/TyroApp.cpp @@ -18,7 +18,7 @@ IMPLEMENT_APP(TyroApp); bool TyroApp::OnInit() { - TyroFrame* frame = new TyroFrame(0L, _("wxWidgets Application Template")); + TyroFrame* frame = new TyroFrame(0L, _("Tyro")); frame->Show(true); diff --git a/TyroApp.h b/TyroApp.h index 82d620c..a948961 100644 --- a/TyroApp.h +++ b/TyroApp.h @@ -11,6 +11,10 @@ #define TYROAPP_H #include +#include +#include +#include +#include class TyroApp : public wxApp { diff --git a/TyroMain.cpp b/TyroMain.cpp index 9e57854..7b18e85 100644 --- a/TyroMain.cpp +++ b/TyroMain.cpp @@ -80,6 +80,13 @@ TyroFrame::~TyroFrame() { } +wxAuiNotebook *TyroFrame::CreateNotebook() +{ +wxAuiNotebook *ctrl = new wxAuiNotebook(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_NB_DEFAULT_STYLE); + +return ctrl; +} + void TyroFrame::OnClose(wxCloseEvent &event) { Destroy(); diff --git a/TyroMain.h b/TyroMain.h index 1319fb5..69b260b 100644 --- a/TyroMain.h +++ b/TyroMain.h @@ -14,7 +14,6 @@ #include #endif -#include #include "TyroApp.h" class TyroFrame: public wxFrame @@ -31,6 +30,7 @@ class TyroFrame: public wxFrame void OnClose(wxCloseEvent& event); void OnQuit(wxCommandEvent& event); void OnAbout(wxCommandEvent& event); + wxAuiNotebook* CreateNotebook(); DECLARE_EVENT_TABLE() };