?? myabout.cpp
字號(hào):
// MyAbout.cpp : implementation file
//
#include "stdafx.h"
#include "T318.h"
#include "MyAbout.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// MyAbout dialog
MyAbout::MyAbout(CWnd* pParent /*=NULL*/)
: CDialog(MyAbout::IDD, pParent)
{
//{{AFX_DATA_INIT(MyAbout)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void MyAbout::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(MyAbout)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(MyAbout, CDialog)
//{{AFX_MSG_MAP(MyAbout)
ON_WM_LBUTTONDOWN()
ON_WM_MOUSEMOVE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// MyAbout message handlers
BOOL MyAbout::OnInitDialog()
{
CDialog::OnInitDialog();
GetDlgItem(IDC_EMAIL)->GetWindowRect(&m_mailto);
ScreenToClient(&m_mailto);
// 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 MyAbout::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
if(point.x>m_mailto.left && point.x<m_mailto.right && point.y>m_mailto.top &&point.y<m_mailto.bottom)
{
if(nFlags == MK_LBUTTON)
{
ShellExecute(0,NULL,"mailto:tflong111@hotmail.com",NULL,NULL,SW_NORMAL);
}
}
CDialog::OnLButtonDown(nFlags, point);
}
void MyAbout::OnMouseMove(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
if(point.x>m_mailto.left && point.x<m_mailto.right && point.y>m_mailto.top &&point.y<m_mailto.bottom)
{
HCURSOR hCursor;
hCursor = AfxGetApp()->LoadCursor(IDC_CURSOR2);
SetCursor(hCursor);
}
CDialog::OnMouseMove(nFlags, point);
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -