📄 aboutdlg.cpp
字号:
// AboutDlg.cpp : implementation file
//
#include "stdafx.h"
#include "notepade.h"
#include "AboutDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// AboutDlg dialog
AboutDlg::AboutDlg(CWnd* pParent /*=NULL*/)
: CDialog(AboutDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(AboutDlg)
//}}AFX_DATA_INIT
}
void AboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(AboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(AboutDlg, CDialog)
//{{AFX_MSG_MAP(AboutDlg)
ON_WM_MOUSEMOVE()
ON_WM_LBUTTONDOWN()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// AboutDlg message handlers
void AboutDlg::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CRect rect;
CStatic *pMailto=(CStatic*)GetDlgItem(IDC_MAILTO);
pMailto->GetWindowRect(&rect);
ScreenToClient(&rect);
if(rect.PtInRect(point))
{
HCURSOR cursor=AfxGetApp()->LoadCursor(IDC_MAIL_CURSOR);
SetCursor(cursor);
}
CDialog::OnMouseMove(nFlags, point);
}
void AboutDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CRect rect;
CStatic *p=(CStatic*)GetDlgItem(IDC_MAILTO);
p->GetWindowRect(&rect);
ScreenToClient(&rect);
if(rect.PtInRect(point))
{
ShellExecute(NULL, "open", "mailto:yang_ligang2000@163.com?subject=意见&Body=如果您有啥建议请在此写入!", NULL, NULL, SW_SHOWNORMAL);
}
CDialog::OnLButtonDown(nFlags, point);
}
BOOL AboutDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -