-
Notifications
You must be signed in to change notification settings - Fork 4
/
DialogAbout.cpp
54 lines (36 loc) · 1.08 KB
/
DialogAbout.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
// DialogAbout.cpp : implementation file
//
#include "stdafx.h"
#include "DiskLED.h"
#include "DialogAbout.h"
#include "commctrl.h"
// CDialogAbout dialog
IMPLEMENT_DYNAMIC(CDialogAbout, CDialog)
CDialogAbout::CDialogAbout(CWnd* pParent /*=NULL*/)
: CDialog(CDialogAbout::IDD, pParent)
{
}
CDialogAbout::~CDialogAbout()
{
}
void CDialogAbout::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CDialogAbout, CDialog)
ON_NOTIFY(NM_CLICK, IDC_SYSLINK_URL1, &CDialogAbout::OnNMClickSyslinkUrl1)
ON_NOTIFY(NM_CLICK, IDC_SYSLINK_URL2, &CDialogAbout::OnNMClickSyslinkUrl2)
END_MESSAGE_MAP()
// CDialogAbout message handlers
void CDialogAbout::OnNMClickSyslinkUrl1(NMHDR *pNMHDR, LRESULT *pResult)
{
PNMLINK pNMLink = (PNMLINK) pNMHDR;
ShellExecute (NULL, TEXT ("open"), pNMLink->item.szUrl, NULL, NULL, SW_SHOWNORMAL);
*pResult = 0;
}
void CDialogAbout::OnNMClickSyslinkUrl2(NMHDR *pNMHDR, LRESULT *pResult)
{
PNMLINK pNMLink = (PNMLINK) pNMHDR;
ShellExecute (NULL, TEXT ("open"), pNMLink->item.szUrl, NULL, NULL, SW_SHOWNORMAL);
*pResult = 0;
}