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

📄 matchdlg.cpp

📁 图像处理软件,功能比较基础
💻 CPP
字号:
// MatchDlg.cpp : implementation file
//

#include "stdafx.h"
#include "linjunjuan.h"
#include "MatchDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CMatchDlg dialog


CMatchDlg::CMatchDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMatchDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMatchDlg)
	m_ref_path = _T("");
	m_sar_path = _T("");
	m_txt_path = _T("");
	m_mask_inner =  36;
	m_truecorner =  160;
	m_mask_outer =  128;
	m_rect_length = 100;
	m_num = 50;
	m_inputpath = _T("");
	m_Res = _T("");
	//}}AFX_DATA_INIT
}


void CMatchDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMatchDlg)
	DDX_Text(pDX, IDC_REF_PATH, m_ref_path);
	DDX_Text(pDX, IDC_SAR_PATH, m_sar_path);
	DDX_Text(pDX, IDC_TXT_PATH, m_txt_path);
	DDX_Text(pDX, IDC_EDIT2, m_mask_inner);
	DDX_Text(pDX, IDC_EDIT1, m_truecorner);
	DDX_Text(pDX, IDC_EDIT3, m_mask_outer);
	DDX_Text(pDX, IDC_EDIT4, m_rect_length);
	DDX_Text(pDX, IDC_PICNUM, m_num);
	DDX_Text(pDX, IDC_INPUTTXT_PATH, m_inputpath);
	DDX_Text(pDX, IDC_RES, m_Res);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMatchDlg, CDialog)
	//{{AFX_MSG_MAP(CMatchDlg)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_REF_BUTTON, OnRefButton)
	ON_BN_CLICKED(IDC_TXT_BUTTON, OnTxtButton)
	ON_BN_CLICKED(IDC_INPUTTXT_BUTTON, OnInputtxtButton)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMatchDlg message handlers

void CMatchDlg::OnButton1() 
{
	char ext[] = "picture types (*.pic)|*.pic||";
	CFileDialog dlg(TRUE,"pic" ,"*.pic",OFN_OVERWRITEPROMPT|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY ,ext, NULL);			
	if(dlg.DoModal()==IDOK)
	{		
		m_sar_path=dlg.GetPathName();			
	}	
		
	UpdateData(FALSE);
	
}

void CMatchDlg::OnRefButton() 
{
	char ext[] = "picture types (*.pic)|*.pic||";
	CFileDialog dlg(TRUE,"pic" ,"*.pic",OFN_OVERWRITEPROMPT|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY ,ext, NULL);			
	if(dlg.DoModal()==IDOK)
	{		
		m_ref_path=dlg.GetPathName();			
	}	
		
	UpdateData(FALSE);	
}

void CMatchDlg::OnTxtButton() 
{
	char ext[] = "picture types (*.txt)|*.txt||";
	CFileDialog dlg(TRUE,"txt" ,"*.txt",OFN_OVERWRITEPROMPT|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY ,ext, NULL);			
	if(dlg.DoModal()==IDOK)
	{		
		m_txt_path=dlg.GetPathName();			
	}	
		
	UpdateData(FALSE);	
}

void CMatchDlg::OnInputtxtButton() 
{
	char ext[] = "picture types (*.txt)|*.txt||";
	CFileDialog dlg(TRUE,"txt" ,"*.txt",OFN_OVERWRITEPROMPT|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY ,ext, NULL);			
	if(dlg.DoModal()==IDOK)
	{		
		m_inputpath=dlg.GetPathName();			
	}			
	UpdateData(FALSE);	
}

⌨️ 快捷键说明

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