Mercurial > mercurial > hgweb_renren.cgi
diff src/main.cpp @ 0:00c5161d67b8 default tip
first release.
author | pyon@macmini |
---|---|
date | Tue, 29 Oct 2013 19:23:03 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main.cpp Tue Oct 29 19:23:03 2013 +0900 @@ -0,0 +1,33 @@ +// Filename : main.cpp +// Last Change: 29-Oct-2013. +// +#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; + + MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("RenRen"), wxDefaultPosition, wxSize( 280, 140 ), wxCAPTION|wxCLOSE_BOX ); + mainframe->Show( true ); + mainframe->InitControl(); + + return true; +} + +int MyApp::OnExit() +{ + return 0; +} +