-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathRecordCfg.cpp
More file actions
62 lines (49 loc) · 1.39 KB
/
Copy pathRecordCfg.cpp
File metadata and controls
62 lines (49 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// RecordCfg.cpp : implementation file
//
#include "stdafx.h"
#include "WinDV.h"
#include "DropFilesEdit.h"
#include "RecordCfg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRecordCfg dialog
CRecordCfg::CRecordCfg()
: CPropertyPage(CRecordCfg::IDD), m_aviPrefixCtl(" | "), m_aviSuffixCtl(" | ")
{
//{{AFX_DATA_INIT(CRecordCfg)
m_recordPreview = FALSE;
m_aviPrefix = _T("");
m_aviSuffix = _T("");
//}}AFX_DATA_INIT
}
void CRecordCfg::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CRecordCfg)
DDX_Control(pDX, IDC_AVI_SUFFIX, m_aviSuffixCtl);
DDX_Control(pDX, IDC_AVI_PREFIX, m_aviPrefixCtl);
DDX_Check(pDX, IDC_RECORDPREVIEW, m_recordPreview);
DDX_Text(pDX, IDC_AVI_PREFIX, m_aviPrefix);
DDX_Text(pDX, IDC_AVI_SUFFIX, m_aviSuffix);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CRecordCfg, CPropertyPage)
//{{AFX_MSG_MAP(CRecordCfg)
ON_BN_CLICKED(IDC_PREFIX_SEL, OnPrefixSel)
ON_BN_CLICKED(IDC_SUFFIX_SEL, OnSuffixSel)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CRecordCfg message handlers
void CRecordCfg::OnPrefixSel()
{
SelectFile(TRUE, GetDlgItem(IDC_AVI_PREFIX));
}
void CRecordCfg::OnSuffixSel()
{
SelectFile(TRUE, GetDlgItem(IDC_AVI_SUFFIX));
}