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

📄 pmfix.cpp

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

#include "stdafx.h"
#include "win32.h"
#include "Pmfix.h"
#include <pekmfc.h>
#include "about.h"
#include "errorlog.h"	

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

/////////////////////////////////////////////////////////////////////////////
// CPmfix

IMPLEMENT_DYNAMIC(CPmfix, CPropertySheet)

CPmfix::CPmfix(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
	
}

CPmfix::CPmfix(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
}

CPmfix::~CPmfix()
{
}


BEGIN_MESSAGE_MAP(CPmfix, CPropertySheet)
	//{{AFX_MSG_MAP(CPmfix)
	ON_WM_HELPINFO()
	ON_WM_SYSCOMMAND()
	//}}AFX_MSG_MAP
	ON_COMMAND(ID_HELP, OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CPmfix message handlers

void CPmfix::init()
{
	AddPage(&page1);
	AddPage(&page2);
	AddPage(&page3);

	m_psh.dwFlags |= PSH_NOAPPLYNOW;
	m_psh.dwFlags |= PSH_HASHELP;

	SetWizardMode();

	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

//User press F1
BOOL CPmfix::OnHelpInfo(HELPINFO* pHelpInfo) 
{
	OnHelp();

	return true;
}

//User press help button
void CPmfix::OnHelp()
{
	if(!pek::mfcOpenReadMe())
	{
		//If no ReadMe was found
		CString msg;
		msg.LoadString(IDS_HELP_NOREADME);

		MessageBox(msg, NULL, MB_OK + MB_ICONWARNING);
	}
}

BOOL CPmfix::OnInitDialog() 
{
	BOOL bResult = CPropertySheet::OnInitDialog();
	
	
	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon

/*	MessageBox("OBS! Detta 鋜 en betaversion. Det 鋜 v鋖digt osannoligt att "
				"n錱ra problem ska uppst

⌨️ 快捷键说明

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