📄 page4.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -