Repository navigation
Expand file tree
/
Copy pathUpdateVerDlg.cpp
More file actions
65 lines (46 loc) · 3.15 KB
/
Copy pathUpdateVerDlg.cpp
File metadata and controls
65 lines (46 loc) · 3.15 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
// UpdateVerDlg.cpp : 实现文件
//
#include "stdafx.h"
#include "UIDemo.h"
#include "UpdateVerDlg.h"
#include "afxdialogex.h"
// CUpdateVerDlg 对话框
IMPLEMENT_DYNAMIC(CUpdateVerDlg, CDialogEx)
CUpdateVerDlg::CUpdateVerDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CUpdateVerDlg::IDD, pParent)
{
}
CUpdateVerDlg::~CUpdateVerDlg()
{
}
void CUpdateVerDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CUpdateVerDlg, CDialogEx)
ON_NOTIFY(NM_CLICK, IDC_SYSLINK1, &CUpdateVerDlg::OnNMClickSyslink1)
ON_NOTIFY(NM_CLICK, IDC_SYSLINK3, &CUpdateVerDlg::OnNMClickSyslink3)
END_MESSAGE_MAP()
// CUpdateVerDlg 消息处理程序
BOOL CUpdateVerDlg::OnInitDialog()
{
/*CDialogEx::OnInitDialog();
int x=8;
int y=220;
m_LinkStatic.CreateEx(0,_T("SysLink")
,_T("设计制作:邓学彬 <a href=\"http://www.it608.com/\">CSDN博客</a> <a href=\"http://t.qq.com/dengxuebin\">腾讯微博</a>")
,WS_CHILD | WS_OVERLAPPED | WS_VISIBLE,CRect(x,y,x+300,y+40),this,IDC_SYSLINK1);
HFONT hFont=(HFONT)GetStockObject(DEFAULT_GUI_FONT);
m_LinkStatic.SendMessage(WM_SETFONT,(WPARAM)hFont);
m_LinkStatic.ShowWindow(SW_SHOW);*/
return TRUE;
}
void CUpdateVerDlg::OnNMClickSyslink1(NMHDR *pNMHDR, LRESULT *pResult)
{
ShellExecuteW(NULL, L"open", _T("http://bbs.dspay.org/forum.php?mod=viewthread&tid=1442&extra=page%3D1"), NULL, NULL, SW_SHOWNORMAL);
CDialogEx::OnOK();
}
void CUpdateVerDlg::OnNMClickSyslink3(NMHDR *pNMHDR, LRESULT *pResult)
{
ShellExecuteW(NULL, L"open", _T("http://bbs.dspay.org/portal.php"), NULL, NULL, SW_SHOWNORMAL);
}