forked from mapic91/MpcAsfTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.cpp
44 lines (35 loc) · 933 Bytes
/
App.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/***************************************************************
* Name: wxWidgets_templateApp.cpp
* Purpose: Code for Application Class
* Author: jxmp (mapic91@163.com)
* Created: 2013-03-07
* Copyright: jxmp (mapicweb)
* License:
**************************************************************/
#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
#include "App.h"
#include "MpcAsfTool.h"
//(*AppHeaders
#include <wx/image.h>
//*)
IMPLEMENT_APP(wxWidgets_templateApp);
bool wxWidgets_templateApp::OnInit()
{
//(*AppInitialize
bool wxsOK = true;
wxInitAllImageHandlers();
//*)
MpcAsfTool* Frame = new MpcAsfTool(0);
Frame->Show();
SetTopWindow(Frame);
//Frame->Maximize();
Frame->Center();
Frame->Refresh();
if(argc > 1) Frame->OpenFile(argv[1]);
return wxsOK;
}