comparison main.cpp @ 0:ebc42d7a0010

First Release.
author pyon@macmini
date Fri, 24 Jan 2014 20:35:59 +0900
parents
children 3fadcf124bb4
comparison
equal deleted inserted replaced
-1:000000000000 0:ebc42d7a0010
1 // Filename : main.cpp
2 // Last Change: 21-Jan-2014.
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 wxImage::AddHandler( new wxJPEGHandler );
23 wxImage::AddHandler( new wxPNGHandler );
24 wxImage::AddHandler( new wxXPMHandler );
25 wxImage::AddHandler( new wxGIFHandler );
26 wxImage::AddHandler( new wxICOHandler );
27 wxImage::AddHandler( new wxBMPHandler );
28 wxImage::AddHandler( new wxTIFFHandler );
29
30 long style = wxDEFAULT_FRAME_STYLE;
31 style = style & ~( wxMAXIMIZE_BOX );
32 MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("IMCV - ImageConverter -"), wxDefaultPosition, wxSize( 450, 200 ), style );
33 mainframe->Show(true);
34
35 return true;
36 }
37
38 int MyApp::OnExit()
39 {
40 return 0;
41 }
42