-
Notifications
You must be signed in to change notification settings - Fork 0
/
AboutDlg.cpp
40 lines (36 loc) · 1.06 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
// aboutdlg.cpp : implementation of the CAboutDlg class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "aboutdlg.h"
LRESULT CAboutDlg::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
CenterWindow(GetParent());
CWindow wnd = GetDlgItem(IDHELP);
NO5TL::CVersionInfo vi;
if (vi.Init(PRODUCT_NAME)) {
CString s, tmp;
const int cp = 0x40904b0;
if (vi.GetString(cp, _T("ProductName"), tmp))
s += tmp;
if (vi.GetString(cp, _T("CompanyName"), tmp)) {
s += "\r\n";
s += tmp;
}
if (vi.GetString(cp, _T("ProductVersion"), tmp)) {
s += "\r\n";
s += tmp;
}
wnd.SetWindowText(s);
}
m_hlWebPage.SubclassWindow(GetDlgItem(IDC_STATIC1));
m_hlWebPage.SetHyperLink(_T("https://fioresoft.net"));
m_hlWebPage.SetLabel(_T("https://fioresoft.net"));
return TRUE;
}
LRESULT CAboutDlg::OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
{
EndDialog(wID);
return 0;
}