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

📄 dlgupfile.cpp

📁 网络文件传输,用于显示屏控制系统
💻 CPP
字号:
// Dlgupfile.cpp : implementation file
//

#include "stdafx.h"
#include "ctrl.h"
#include "Dlgupfile.h"
#include "pro_ser.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgupfile dialog


CDlgupfile::CDlgupfile(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgupfile::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgupfile)
	m_savepath = _T("");
	m_upfilepath1 = _T("");
	m_upfilepath2 = _T("");
	m_upfilepath3 = _T("");
	m_upfilepath4 = _T("");
	m_upfilepath5 = _T("");
	m_upfilepath6 = _T("");
	//}}AFX_DATA_INIT
}


void CDlgupfile::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgupfile)
	DDX_Control(pDX, IDC_CHECK1, m_mode);
	DDX_Text(pDX, IDC_DLG21SAVEPATH, m_savepath);
	DDX_Text(pDX, IDC_READFILEPATH1, m_upfilepath1);
	DDX_Text(pDX, IDC_READFILEPATH2, m_upfilepath2);
	DDX_Text(pDX, IDC_READFILEPATH3, m_upfilepath3);
	DDX_Text(pDX, IDC_READFILEPATH4, m_upfilepath4);
	DDX_Text(pDX, IDC_READFILEPATH5, m_upfilepath5);
	DDX_Text(pDX, IDC_READFILEPATH6, m_upfilepath6);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgupfile, CDialog)
	//{{AFX_MSG_MAP(CDlgupfile)
	ON_BN_CLICKED(IDC_FILEOPEN1, OnFileopen1)
	ON_BN_CLICKED(IDC_FILEOPEN2, OnFileopen2)
	ON_BN_CLICKED(IDC_FILEOPEN3, OnFileopen3)
	ON_BN_CLICKED(IDC_FILEOPEN4, OnFileopen4)
	ON_BN_CLICKED(IDC_FILEOPEN5, OnFileopen5)
	ON_BN_CLICKED(IDC_FILEOPEN6, OnFileopen6)
	ON_BN_CLICKED(IDC_CHECK1, OnCheck1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgupfile message handlers

void CDlgupfile::OnFileopen1() 
{
	// TODO: Add your control notification handler code here
	CFileDialog filedlg( TRUE,NULL, NULL,OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT | OFN_OVERWRITEPROMPT, szFilter,  this ); 	  	 
	if(filedlg.DoModal()==IDOK)
	{
		m_upfilepath1=filedlg.GetPathName();
		 UpdateData(FALSE);
	}
}

void CDlgupfile::OnFileopen2() 
{
	// TODO: Add your control notification handler code here
	CFileDialog filedlg( TRUE,NULL, NULL,OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT | OFN_OVERWRITEPROMPT, szFilter,  this ); 	  	 
	if(filedlg.DoModal()==IDOK)
	{
		m_upfilepath2=filedlg.GetPathName();
		 UpdateData(FALSE);
	}
}

void CDlgupfile::OnFileopen3() 
{
	// TODO: Add your control notification handler code here
	CFileDialog filedlg( TRUE,NULL, NULL,OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT | OFN_OVERWRITEPROMPT, szFilter,  this ); 	  	 
	if(filedlg.DoModal()==IDOK)
	{
		m_upfilepath3=filedlg.GetPathName();
		 UpdateData(FALSE);
	}
}

void CDlgupfile::OnFileopen4() 
{
	// TODO: Add your control notification handler code here
		CFileDialog filedlg( TRUE,NULL, NULL,OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT | OFN_OVERWRITEPROMPT, szFilter,  this ); 	  	 
	if(filedlg.DoModal()==IDOK)
	{
		m_upfilepath4=filedlg.GetPathName();
		 UpdateData(FALSE);
	}
}

void CDlgupfile::OnFileopen5() 
{
	// TODO: Add your control notification handler code here
		CFileDialog filedlg( TRUE,NULL, NULL,OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT | OFN_OVERWRITEPROMPT, szFilter,  this ); 	  	 
	if(filedlg.DoModal()==IDOK)
	{
		m_upfilepath5=filedlg.GetPathName();
		 UpdateData(FALSE);
	}
}

void CDlgupfile::OnFileopen6() 
{
	// TODO: Add your control notification handler code here
		CFileDialog filedlg( TRUE,NULL, NULL,OFN_HIDEREADONLY | OFN_ALLOWMULTISELECT | OFN_OVERWRITEPROMPT, szFilter,  this ); 	  	 
	if(filedlg.DoModal()==IDOK)
	{
		m_upfilepath6=filedlg.GetPathName();
		 UpdateData(FALSE);
	}
}

void CDlgupfile::OnCheck1() 
{
	// TODO: Add your control notification handler code here
	if(m_mode.GetCheck())
	{
		over=1;
	}
	else
	{
		over=0;
	}
}

⌨️ 快捷键说明

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