45
|
1 // Filename : main.cpp
|
|
2 // Last Change: 2020-03-17 火 16:05:54.
|
|
3 //
|
|
4 #include "main.h"
|
|
5 #include "alloc.h"
|
|
6
|
|
7 IMPLEMENT_APP(MyApp)
|
|
8
|
|
9 IMPLEMENT_CLASS(MyApp, wxApp)
|
|
10
|
|
11 MyApp::MyApp()
|
|
12 {
|
|
13 }
|
|
14
|
|
15 MyApp::~MyApp()
|
|
16 {
|
|
17 }
|
|
18
|
|
19 bool MyApp::OnInit()
|
|
20 {
|
|
21 if (!wxApp::OnInit()) return false;
|
|
22
|
|
23 AllocFrame *frame = new AllocFrame(NULL, wxID_ANY, wxT("ALLOC"), wxDefaultPosition, wxSize(420, 180), wxCAPTION|wxCLOSE_BOX);
|
|
24 frame->Show(true);
|
|
25 frame->Raise();
|
|
26
|
|
27 return true;
|
|
28 }
|
|
29
|
|
30 int MyApp::OnExit()
|
|
31 {
|
|
32 return 0;
|
|
33 }
|
|
34
|