-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAboutDlg.cpp
62 lines (50 loc) · 1.45 KB
/
AboutDlg.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include "stdafx.h"
#include "Axis3.h"
#include "AboutDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CAboutDlg::CAboutDlg() : CDialogEx(CAboutDlg::IDD)
{
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_LICENSE, m_ceLicense);
DDX_Control(pDX, IDC_COPYRIGHT, m_ceCopyright);
DDX_Control(pDX, IDOK, cb_ok);
}
BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg message handlers
BOOL CAboutDlg::OnInitDialog()
{
CDialogEx::OnInitDialog();
/*SetWindowText(CMsg("IDS_ABOUTBOX"));
cb_ok.SetWindowText(CMsg("OK"));*/
/*CString lf, lf2;
lf.Format("%c%c", 0x0d, 0x0a);
lf2.Format("%c%c%c%c", 0x0d, 0x0a, 0x0d, 0x0a);
CString csCopyright = Main->GetVersionTitle();
csCopyright += lf;
csCopyright += CFMsg(IDS_COPY1,CTime::GetCurrentTime().GetYear());
csCopyright += lf;
csCopyright += CFMsg(IDS_COPY2,Main->GetBuildTimestamp());
csCopyright += lf;
csCopyright += CFMsg(IDS_COPY3,SERVER_VERSION);
csCopyright += lf2;
csCopyright += CMsg(IDS_COPY4);
csCopyright += lf;
csCopyright += CMsg(IDS_COPY5);
csCopyright += lf;
csCopyright += CMsg(IDS_COPY6);
m_ceCopyright.SetWindowText(csCopyright);
CString csLicense = CMsg(IDS_LICENCE1);
csLicense += lf2;
csLicense += CMsg(IDS_LICENCE2);
csLicense += lf2;
csLicense += CMsg(IDS_LICENCE3);
m_ceLicense.SetWindowText(csLicense);*/
return TRUE;
}