Mercurial > mercurial > hgweb_kaigo.hg.cgi
comparison horori/merger/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-24 金 17:19:21. | |
3 // | |
4 #include "main.h" | |
5 #include "merger.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 | |
25 MergeFrame *frame = new MergeFrame(NULL, wxID_ANY, wxT("Merger"), wxDefaultPosition, wxSize(1200, 1150), wxDEFAULT_FRAME_STYLE); | |
26 frame->Show(true); | |
27 frame->Raise(); | |
28 | |
29 return true; | |
30 } | |
31 | |
32 int MyApp::OnExit() | |
33 { | |
34 return 0; | |
35 } | |
36 |