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

📄 about.cpp

📁 一个pmfix程序
💻 CPP
字号:
// about.cpp : implementation file
//

#include "stdafx.h"
#include "win32.h"
#include "about.h"
#include <hyperlink.h>
#include <pekmfc.h>

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

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
	//{{AFX_DATA_INIT(CAboutDlg)
	//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAboutDlg)
	DDX_Control(pDX, IDC_README, m_readme);
	DDX_Control(pDX, IDC_HOMEPAGE, m_homepage);
	DDX_Control(pDX, IDC_EMAIL, m_email);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
	//{{AFX_MSG_MAP(CAboutDlg)
	ON_WM_HELPINFO()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()


BOOL CAboutDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	CString str;

	str.LoadString(IDS_ABOUT_HOMEPAGE);
	m_homepage.SetURL(str);
	
	str.LoadString(IDS_ABOUT_EMAIL);
	m_email.SetURL(str);

	str.LoadString(IDS_ABOUT_README);
	m_readme.SetURL(pek::mfcGetAppPath() + str);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

BOOL CAboutDlg::OnHelpInfo(HELPINFO* pHelpInfo) 
{
	pek::mfcOpenReadMe();
	
	//Disable helpfile
	return false;

//	return CDialog::OnHelpInfo(pHelpInfo);
}

⌨️ 快捷键说明

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