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

📄 prop1.cpp

📁 这个是我用mfc写的一个pl0的编译器
💻 CPP
字号:
// prop1.cpp : implementation file
//

#include "stdafx.h"
#include "MFCpl0.h"
#include "prop1.h"
#include "openfile.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Cprop1 property page

IMPLEMENT_DYNCREATE(Cprop1, CPropertyPage)

Cprop1::Cprop1() : CPropertyPage(Cprop1::IDD)
{
	//{{AFX_DATA_INIT(Cprop1)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

Cprop1::~Cprop1()
{
}

void Cprop1::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cprop1)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cprop1, CPropertyPage)
	//{{AFX_MSG_MAP(Cprop1)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cprop1 message handlers

void Cprop1::OnButton1() 
{
	// TODO: Add your control notification handler code here
	Copenfile file(TRUE, "", NULL, 
		OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT | OFN_ALLOWMULTISELECT, 
		"BMP人脸图像(*.bmp)|*.bmp|所有文件(*.*)|*.*||",
		AfxGetMainWnd());
	file.DoModal();


}

⌨️ 快捷键说明

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