comparison main.cpp @ 0:6235b9a84d53

First Release.
author pyon@macmini
date Mon, 21 Apr 2014 20:44:57 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:6235b9a84d53
1 // Filename : main.cpp
2 // Last Change: 21-Apr-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 long style = wxDEFAULT_FRAME_STYLE;
23 style = style & ~( wxMAXIMIZE_BOX );
24 MyFrame *mainframe = new MyFrame( NULL, wxID_ANY, wxT("Mouse Position"), wxDefaultPosition, wxSize( 200, 200 ), style );
25 mainframe->Show(true);
26
27 return true;
28 }
29
30 int MyApp::OnExit()
31 {
32 return 0;
33 }
34