提交 | 用户 | age
|
418cb3
|
1 |
// PropInputCfg.cpp: 实现文件
|
Q |
2 |
//
|
|
3 |
|
|
4 |
#include "pch.h"
|
|
5 |
#include "MTerm1.h"
|
|
6 |
#include "PropInputCfg.h"
|
|
7 |
#include "afxdialogex.h"
|
|
8 |
|
|
9 |
|
|
10 |
// CPropInputCfg 对话框
|
|
11 |
|
|
12 |
IMPLEMENT_DYNAMIC(CPropInputCfg, CMyPropPage)
|
|
13 |
|
|
14 |
CPropInputCfg::CPropInputCfg(CWnd* pParent /*=nullptr*/)
|
|
15 |
: CMyPropPage(IDD_PROP_INPUT_CFG, pParent)
|
|
16 |
{
|
|
17 |
|
|
18 |
}
|
|
19 |
|
|
20 |
CPropInputCfg::~CPropInputCfg()
|
|
21 |
{
|
|
22 |
}
|
|
23 |
|
|
24 |
void CPropInputCfg::DoDataExchange(CDataExchange* pDX)
|
|
25 |
{
|
|
26 |
CDialogEx::DoDataExchange(pDX);
|
|
27 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_1, m_combo_input_filter[0]);
|
|
28 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_2, m_combo_input_filter[1]);
|
|
29 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_3, m_combo_input_filter[2]);
|
|
30 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_4, m_combo_input_filter[3]);
|
|
31 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_5, m_combo_input_filter[4]);
|
|
32 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_6, m_combo_input_filter[5]);
|
|
33 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_7, m_combo_input_filter[6]);
|
|
34 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_8, m_combo_input_filter[7]);
|
|
35 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_9, m_combo_input_filter[8]);
|
|
36 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_10, m_combo_input_filter[9]);
|
|
37 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_11, m_combo_input_filter[10]);
|
|
38 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_12, m_combo_input_filter[11]);
|
|
39 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_13, m_combo_input_filter[12]);
|
|
40 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_14, m_combo_input_filter[13]);
|
|
41 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_15, m_combo_input_filter[14]);
|
|
42 |
DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_16, m_combo_input_filter[15]);
|
|
43 |
}
|
|
44 |
|
|
45 |
|
|
46 |
BEGIN_MESSAGE_MAP(CPropInputCfg, CDialogEx)
|
|
47 |
END_MESSAGE_MAP()
|
|
48 |
|
|
49 |
|
|
50 |
// CPropInputCfg 消息处理程序
|
|
51 |
|
|
52 |
|
|
53 |
int CPropInputCfg::GetData()
|
|
54 |
{
|
|
55 |
// TODO: 在此处添加实现代码.
|
|
56 |
if (DataPtr != nullptr)
|
|
57 |
{
|
|
58 |
|
|
59 |
ShowParams();
|
|
60 |
}
|
|
61 |
return 0;
|
|
62 |
}
|
|
63 |
|
|
64 |
|
|
65 |
int CPropInputCfg::SetData()
|
|
66 |
{
|
|
67 |
// TODO: 在此处添加实现代码.
|
|
68 |
|
|
69 |
return 0;
|
|
70 |
}
|
|
71 |
|
|
72 |
|
|
73 |
int CPropInputCfg::ShowParams()
|
|
74 |
{
|
|
75 |
// TODO: 在此处添加实现代码.
|
|
76 |
int i = 0;
|
|
77 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_1))->SetCurSel(i);
|
|
78 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_2))->SetCurSel(i);
|
|
79 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_3))->SetCurSel(i);
|
|
80 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_4))->SetCurSel(i);
|
|
81 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_5))->SetCurSel(i);
|
|
82 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_6))->SetCurSel(i);
|
|
83 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_7))->SetCurSel(i);
|
|
84 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_8))->SetCurSel(i);
|
|
85 |
|
|
86 |
|
|
87 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_9))->ShowWindow(SW_HIDE);
|
|
88 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_10))->SetCurSel(i);
|
|
89 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_11))->SetCurSel(i);
|
|
90 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_12))->SetCurSel(i);
|
|
91 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_13))->SetCurSel(i);
|
|
92 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_14))->SetCurSel(i);
|
|
93 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_15))->SetCurSel(i);
|
|
94 |
((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_16))->SetCurSel(i);
|
|
95 |
return 0;
|
|
96 |
}
|
|
97 |
|
|
98 |
|
|
99 |
int CPropInputCfg::GetParams()
|
|
100 |
{
|
|
101 |
// TODO: 在此处添加实现代码.
|
|
102 |
return 0;
|
|
103 |
}
|