-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHspGradatorApp.cpp
More file actions
72 lines (72 loc) · 5.52 KB
/
Copy pathHspGradatorApp.cpp
File metadata and controls
72 lines (72 loc) · 5.52 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// HspGradatorApp.cpp
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2019-2023 Adrian Maurer. All rights reserved.
// Distributed under the GPL-3.0 software license (https://opensource.org/licenses/GPL-3.0).
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#include "pch.h"
#include "framework.h"
#include "HspGradatorApp.h"
#include "MainFrame.h"
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// CAboutDlg
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// CAboutDlg - CONSTRUCTION / DESTRUCTION / ASSIGNMENT
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CAboutDlg::CAboutDlg() :
CDialog(IDD_ABOUT_DLG)
{
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// CAboutDlg - MESSAGE MAP FUNCTIONS
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
END_MESSAGE_MAP()
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// CHspGradatorApp
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// CHspGradatorApp - CONSTRUCTION / DESTRUCTION / ASSIGNMENT
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CHspGradatorApp::CHspGradatorApp() :
CWinApp()
{
SetAppID(L"CHspGradatorApp.AppID.NoVersion");
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// CHspGradatorApp - OVERRIDES
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BOOL CHspGradatorApp::InitInstance()
{
CWinApp::InitInstance();
CFrameWnd* p_mf = new CMainFrame;
if (p_mf->LoadFrame(IDR_MAIN_FRAME, WS_OVERLAPPEDWINDOW))
{
HICON h_i = LoadIconW(IDR_MAIN_FRAME);
p_mf->SetIcon(h_i, TRUE);
p_mf->SetIcon(h_i, FALSE);
p_mf->ShowWindow(SW_SHOWMAXIMIZED);
p_mf->UpdateWindow();
m_pMainWnd = p_mf;
return TRUE;
}
return FALSE;
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// CHspGradatorApp - MESSAGE MAP FUNCTIONS
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BEGIN_MESSAGE_MAP(CHspGradatorApp, CWinApp)
ON_COMMAND(ID_APP_ABOUT, &CHspGradatorApp::OnAppAbout)
END_MESSAGE_MAP()
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
void CHspGradatorApp::OnAppAbout()
{
CAboutDlg aboutDlg;
aboutDlg.DoModal();
}
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CHspGradatorApp theApp;
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------