comparison horori/mover/src/main.cpp @ 0:aaaa401818a1 draft

first commit.
author pyon <pyon@macmini>
date Mon, 24 May 2021 21:32:58 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:aaaa401818a1
1 // Filename : main.cpp
2 // Last Change: 2020-04-03 金 10:57:52.
3 //
4 #include "main.h"
5 #include "mover.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 wxImage::AddHandler(new wxJPEGHandler);
23 wxImage::AddHandler(new wxTIFFHandler);
24 wxImage::AddHandler(new wxPNGHandler);
25
26 MoveFrame *frame = new MoveFrame(NULL, wxID_ANY, wxT("Mover"), wxDefaultPosition, wxSize(1400, 1000), wxDEFAULT_FRAME_STYLE);
27 frame->Show(true);
28 frame->Raise();
29
30 return true;
31 }
32
33 int MyApp::OnExit()
34 {
35 return 0;
36 }
37