page4.cpp
来自「一个对系统执行文件提供方便管理的软件,里面用到的技术值得参考.」· C++ 代码 · 共 73 行
CPP
73 行
// Page4.cpp : implementation file
//
#include "stdafx.h"
#include "PStart.h"
#include "Page4.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPage4 dialog
CPage4::CPage4(CWnd* pParent /*=NULL*/)
: CDialog(CPage4::IDD, pParent)
{
//{{AFX_DATA_INIT(CPage4)
m_Name = _T("");
m_Path = _T("");
//}}AFX_DATA_INIT
}
void CPage4::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPage4)
DDX_Text(pDX, IDC_EDITNAME, m_Name);
DDX_Text(pDX, IDC_EDITPATH, m_Path);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPage4, CDialog)
//{{AFX_MSG_MAP(CPage4)
ON_BN_CLICKED(IDC_BROWSE, OnBrowsePath)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPage4 message handlers
//DEL void CPage4::OnBrowse()
//DEL {
//DEL // TODO: Add your control notification handler code here
//DEL
//DEL }
BOOL CPage4::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE;
}
void CPage4::OnBrowsePath()
{
// TODO: Add your control notification handler code here
CFileDialog FileDlg(TRUE, NULL, NULL, OFN_FILEMUSTEXIST, _T("executable file(*.exe;*.scr;*.com;*.bat)|*.exe;*.scr;*.com;*.bat"),NULL);
if(FileDlg.DoModal()!=IDOK)
return;
m_Path=FileDlg.GetPathName();
UpdateData(FALSE);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?