Mercurial > mercurial > hgweb_renren.cgi
comparison src/main.cpp @ 0:00c5161d67b8 default tip
first release.
| author | pyon@macmini |
|---|---|
| date | Tue, 29 Oct 2013 19:23:03 +0900 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:00c5161d67b8 |
|---|---|
| 1 // Filename : main.cpp | |
| 2 // Last Change: 29-Oct-2013. | |
| 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 MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("RenRen"), wxDefaultPosition, wxSize( 280, 140 ), wxCAPTION|wxCLOSE_BOX ); | |
| 23 mainframe->Show( true ); | |
| 24 mainframe->InitControl(); | |
| 25 | |
| 26 return true; | |
| 27 } | |
| 28 | |
| 29 int MyApp::OnExit() | |
| 30 { | |
| 31 return 0; | |
| 32 } | |
| 33 |
