changeset 2 | 5331bd08a294 |
child 3 | 01dafa022fa1 |
1:d89c6e7de299 | 2:5331bd08a294 |
---|---|
1 #include <wx/wx.h> |
|
2 #include <wx/log.h> |
|
3 #include <wx/image.h> |
|
4 #include <wx/string.h> |
|
5 #include <wx/init.h> |
|
6 |
|
7 #include "MainWindow.hpp" |
|
8 |
|
9 class MyApp : public wxApp |
|
10 { |
|
11 public: |
|
12 virtual bool OnInit(); |
|
13 }; |
|
14 |
|
15 IMPLEMENT_APP(MyApp) |
|
16 |
|
17 bool MyApp::OnInit() |
|
18 { |
|
19 if(!wxApp::OnInit()) |
|
20 return false; |
|
21 |
|
22 MainWindow *mw = new MainWindow(); |
|
23 mw->Show(); |
|
24 SetTopWindow(mw); |
|
25 |
|
26 return true; |
|
27 } |