Mercurial > mercurial > hgweb_porori.cgi
comparison Porori/src/main.cpp @ 0:2b4fc52a96d9
porori.
| author | pyon@macmini | 
|---|---|
| date | Wed, 12 Feb 2020 18:57:24 +0900 | 
| parents | |
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| -1:000000000000 | 0:2b4fc52a96d9 | 
|---|---|
| 1 // Filename : main.cpp | |
| 2 // Last Change: 2020-02-12 08:38:12. | |
| 3 // | |
| 4 #include "main.h" | |
| 5 #include "porori.h" | |
| 6 | |
| 7 IMPLEMENT_APP(MyApp) | |
| 8 | |
| 9 IMPLEMENT_CLASS( MyApp, wxApp ) | |
| 10 | |
| 11 MyApp::MyApp() | |
| 12 { | |
| 13 } | |
| 14 MyApp::~MyApp() | |
| 15 { | |
| 16 } | |
| 17 | |
| 18 bool MyApp::OnInit() | |
| 19 { | |
| 20 if ( !wxApp::OnInit() ) return false; | |
| 21 | |
| 22 long style = wxDEFAULT_FRAME_STYLE; | |
| 23 style = style & ~(wxMAXIMIZE_BOX); | |
| 24 PororiFrame *mainframe = new PororiFrame(NULL, wxID_ANY, wxT("Porori"), wxDefaultPosition, wxSize(340,80), style); | |
| 25 mainframe->Show(true); | |
| 26 | |
| 27 return true; | |
| 28 } | |
| 29 | |
| 30 int MyApp::OnExit() | |
| 31 { | |
| 32 return 0; | |
| 33 } | |
| 34 | 
