-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
32 lines (25 loc) · 994 Bytes
/
main.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
#include "main.h"
#include "tsnsoft.xpm" // Подключаем иконку
#include <locale>
#include <wx/intl.h>
// initialize the application
IMPLEMENT_APP(MainApp);
////////////////////////////////////////////////////////////////////////////////
// application class implementation
////////////////////////////////////////////////////////////////////////////////
bool MainApp::OnInit() {
SetTopWindow(new MainFrame(NULL));
GetTopWindow()->Show(); // Отображаем окно
GetTopWindow()->Center(); // Центрируем окно
return true;
}
////////////////////////////////////////////////////////////////////////////////
// main application frame implementation
////////////////////////////////////////////////////////////////////////////////
MainFrame::MainFrame(wxWindow* parent)
: MainFrameBase(parent) {
wxInitAllImageHandlers();
this->SetIcon(wxIcon(tsnsoft_xpm)); // Устанавливаем иконку для формы
}
MainFrame::~MainFrame() {
}