📄 filesdlg.cpp
字号:
// FilesDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Ext32.h"
#include "FilesDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern char gsFilespec[MAX_PATH];
/////////////////////////////////////////////////////////////////////////////
// FilesDlg dialog
FilesDlg::FilesDlg(CWnd* pParent /*=NULL*/)
: CDialog(FilesDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(FilesDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void FilesDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(FilesDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
DDX_Text(pDX, IDC_FILESBOX, m_Filespec);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(FilesDlg, CDialog)
//{{AFX_MSG_MAP(FilesDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// FilesDlg message handlers
void FilesDlg::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
strcpy(gsFilespec, m_Filespec);
CDialog::OnOK();
}
void FilesDlg::OnCancel()
{
// TODO: Add extra cleanup here
CDialog::OnCancel();
}
BOOL FilesDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_Filespec = gsFilespec;
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -