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

📄 dialog_test.cpp

📁 这是个手指指纹识别的源代码 ,也是从网络上下载的
💻 CPP
字号:
// Dialog_test.cpp : implementation file
//

#include "stdafx.h"
#include "Finger.h"
#include "Dialog_test.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialog_test dialog


CDialog_test::CDialog_test(CWnd* pParent /*=NULL*/)
	: CDialog(CDialog_test::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialog_test)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


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


BEGIN_MESSAGE_MAP(CDialog_test, CDialog)
	//{{AFX_MSG_MAP(CDialog_test)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialog_test message handlers

void CDialog_test::OnButton1() 
{
	// TODO: Add your control notification handler code here
   CString sFile;
   CFileDialog FileDlg(TRUE,NULL,NULL,OFN_HIDEREADONLY|OFN_OVERWRITEPROMPT,_T("*.bmp|*.bmp|*.*|*.*|"));

	if(FileDlg.DoModal()==IDOK)
	{
		sFile=FileDlg.GetPathName();
	//	SetWindowText(sFile);		
		IfRead=m_DIBStatic.LoadDib(sFile);
		Being=TRUE;			
	}
	else
	{
		if(IfRead)
			m_DIBStatic.UpdateDib();		
		return;
	}
	GiveData();
	GiveDatabmp();
	ShowBmp();
	
}

⌨️ 快捷键说明

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