⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myabout.cpp

📁 小型计算器程序 ?⌒图扑闫鞒绦? 小型计算器程序
💻 CPP
字号:
// 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);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -