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

📄 aboutdialog.cpp

📁 Windows CE上的计算器
💻 CPP
字号:
// AboutDialog.cpp : implementation file
//

#include "stdafx.h"
#include "CeCalc.h"
#include "AboutDialog.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutDialog dialog

CAboutDialog::CAboutDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CAboutDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAboutDialog)
	m_copyright = TEXT("版权所有 (C) 2008 魏立春");
	m_display = 
		TEXT("This program is free software: you can redistribute it and/or \
		modify it under the terms of the GNU General Public License as \
		published by the Free Software Foundation, either version 3 of the \
		License, or (at your option) any later version. \nThis program is \
		distributed in the hope that it will be useful, but WITHOUT ANY \
		WARRANTY; without even the implied warranty of MERCHANTABILITY or \
		FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public \
		License for more details. \nYou should have received a copy of the\
		GNU General Public License along with this program.  If not, \
		see <http://www.gnu.org/licenses/>.");
	//}}AFX_DATA_INIT
}


void CAboutDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAboutDialog)
	DDX_Text(pDX, IDC_EDIT1, m_display);
	DDX_Text(pDX, IDC_STATIC_COPYRIGHT, m_copyright);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDialog, CDialog)
	//{{AFX_MSG_MAP(CAboutDialog)
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAboutDialog message handlers

void CAboutDialog::OnLButtonDown(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	
	CDialog::OnLButtonDown(nFlags, point);
	//this->DestroyWindow();
}
#include <string>
void CAboutDialog::OnLButtonUp(UINT nFlags, CPoint point) 
{
	// TODO: Add your message handler code here and/or call default
	
	CDialog::OnLButtonUp(nFlags, point);
	this->OnOK();
}

⌨️ 快捷键说明

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