dialog_test.cpp

来自「这是个手指指纹识别的源代码 ,也是从网络上下载的」· C++ 代码 · 共 69 行

CPP
69
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?