📄 seriessnapdlg.cpp
字号:
// SeriesSnapDlg.cpp : implementation file
//
#include "stdafx.h"
#include "VCShow.h"
#include "SeriesSnapDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// SeriesSnapDlg dialog
SeriesSnapDlg::SeriesSnapDlg(CWnd* pParent /*=NULL*/)
: CDialog(SeriesSnapDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(SeriesSnapDlg)
m_EditPath = _T("");
m_NumTime = 3;
//}}AFX_DATA_INIT
}
void SeriesSnapDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(SeriesSnapDlg)
DDX_Control(pDX, IDC_EDIT_TIMELIMT, m_timeLimt);
DDX_Text(pDX, IDC_EDIT_PATH, m_EditPath);
DDX_Text(pDX, IDC_EDIT_TIMELIMT, m_NumTime);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(SeriesSnapDlg, CDialog)
//{{AFX_MSG_MAP(SeriesSnapDlg)
ON_BN_CLICKED(IDC_BUTTON_CHOOSE, OnButtonChoose)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// SeriesSnapDlg message handlers
void SeriesSnapDlg::OnButtonChoose()
{
UpdateData(true);
BROWSEINFO bi;
ITEMIDLIST *pdi;
char binPath[100];
bi.hwndOwner = NULL;
bi.pidlRoot = NULL;
bi.pszDisplayName = binPath;
bi.lpszTitle = "选择路径";
bi.ulFlags = BIF_RETURNONLYFSDIRS;
bi.lpfn = NULL;
bi.iImage = 0;
pdi = SHBrowseForFolder(&bi);
if ( pdi == NULL )
return;
SHGetPathFromIDList(pdi,binPath);
m_path=m_EditPath=binPath;
UpdateData(false);
m_path.Format("%s%s",m_path,"\\");
PictureControl *p;
p->ConvertPath(m_path);
}
void SeriesSnapDlg::OnOK()
{
UpdateData(true);
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -