Mercurial > mercurial > hgweb_hanzen.cgi
diff main.cpp @ 0:79a92ddc3546
first release.
author | pyon@macmini |
---|---|
date | Wed, 16 Apr 2014 01:08:11 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Apr 16 01:08:11 2014 +0900 @@ -0,0 +1,34 @@ +// Filename : main.cpp +// Last Change: 14-Apr-2014. +// +#include "main.h" +#include "myframe.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 ); + MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("HanZen - Hankaku Zenkaku Converter -"), wxDefaultPosition, wxSize( 600, 400 ), style ); + mainframe->Show(true); + + return true; +} + +int MyApp::OnExit() +{ + return 0; +} +