📄 about.cpp
字号:
// About.cpp : implementation file
//
#include "stdafx.h"
#include "横店集团保卫人员管理系统.h"
#include "About.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAbout dialog
CAbout::CAbout(CWnd* pParent /*=NULL*/)
: CDialog(CAbout::IDD, pParent)
{
//{{AFX_DATA_INIT(CAbout)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CAbout::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAbout)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAbout, CDialog)
//{{AFX_MSG_MAP(CAbout)
ON_WM_MOUSEMOVE()
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAbout message handlers
BOOL CAbout::OnInitDialog()
{
CDialog::OnInitDialog();
moveon=false;
SetTimer(1,100,NULL);
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CAbout::OnMouseMove(UINT nFlags, CPoint point)
{
CRect rect(80,80,280,95);
if(PtInRect(rect,point))
{
moveon=true;
SetCursor(AfxGetApp()->LoadCursor(IDC_CURSOR1));
}
else
moveon=false;
// TODO: Add your message handler code here and/or call default
CDialog::OnMouseMove(nFlags, point);
}
void CAbout::OnLButtonDown(UINT nFlags, CPoint point)
{
if(moveon)
{
this->OnOK();
ShellExecute(NULL,"open","mailto:davehuhudave@hengdian.com",NULL,NULL,SW_SHOWNORMAL);
}
// TODO: Add your message handler code here and/or call default
CDialog::OnLButtonDown(nFlags, point);
}
void CAbout::OnLButtonUp(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
CDialog::OnLButtonUp(nFlags, point);
}
void CAbout::OnTimer(UINT nIDEvent)
{
CDC *pDC=GetDC();
if(moveon)
{
pDC->SetTextColor(RGB(255,0,0));
pDC->TextOut(80,80,"davehuhudave@hengdian.com");
}
else
{
pDC->SetTextColor(RGB(0,0,0));
pDC->TextOut(80,80,"davehuhudave@hengdian.com");
}
CDialog::OnTimer(nIDEvent);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -