Mercurial > mercurial > hgweb_hanzen.cgi
comparison main.cpp @ 0:79a92ddc3546
first release.
| author | pyon@macmini |
|---|---|
| date | Wed, 16 Apr 2014 01:08:11 +0900 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:79a92ddc3546 |
|---|---|
| 1 // Filename : main.cpp | |
| 2 // Last Change: 14-Apr-2014. | |
| 3 // | |
| 4 #include "main.h" | |
| 5 #include "myframe.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 MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("HanZen - Hankaku Zenkaku Converter -"), wxDefaultPosition, wxSize( 600, 400 ), style ); | |
| 25 mainframe->Show(true); | |
| 26 | |
| 27 return true; | |
| 28 } | |
| 29 | |
| 30 int MyApp::OnExit() | |
| 31 { | |
| 32 return 0; | |
| 33 } | |
| 34 |
