Mercurial > mercurial > hgweb_porori.cgi
diff Porori/src/main.cpp @ 0:2b4fc52a96d9
porori.
author | pyon@macmini |
---|---|
date | Wed, 12 Feb 2020 18:57:24 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Porori/src/main.cpp Wed Feb 12 18:57:24 2020 +0900 @@ -0,0 +1,34 @@ +// Filename : main.cpp +// Last Change: 2020-02-12 08:38:12. +// +#include "main.h" +#include "porori.h" + +IMPLEMENT_APP(MyApp) + +IMPLEMENT_CLASS( MyApp, wxApp ) + +MyApp::MyApp() +{ +} +MyApp::~MyApp() +{ +} + +bool MyApp::OnInit() +{ + if ( !wxApp::OnInit() ) return false; + + long style = wxDEFAULT_FRAME_STYLE; + style = style & ~(wxMAXIMIZE_BOX); + PororiFrame *mainframe = new PororiFrame(NULL, wxID_ANY, wxT("Porori"), wxDefaultPosition, wxSize(340,80), style); + mainframe->Show(true); + + return true; +} + +int MyApp::OnExit() +{ + return 0; +} +