// PropInputCfg.cpp: 实现文件 // #include "pch.h" #include "MTerm1.h" #include "PropInputCfg.h" #include "afxdialogex.h" // CPropInputCfg 对话框 IMPLEMENT_DYNAMIC(CPropInputCfg, CMyPropPage) CPropInputCfg::CPropInputCfg(CWnd* pParent /*=nullptr*/) : CMyPropPage(IDD_PROP_INPUT_CFG, pParent) { } CPropInputCfg::~CPropInputCfg() { } void CPropInputCfg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_1, m_combo_input_filter[0]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_2, m_combo_input_filter[1]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_3, m_combo_input_filter[2]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_4, m_combo_input_filter[3]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_5, m_combo_input_filter[4]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_6, m_combo_input_filter[5]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_7, m_combo_input_filter[6]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_8, m_combo_input_filter[7]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_9, m_combo_input_filter[8]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_10, m_combo_input_filter[9]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_11, m_combo_input_filter[10]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_12, m_combo_input_filter[11]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_13, m_combo_input_filter[12]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_14, m_combo_input_filter[13]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_15, m_combo_input_filter[14]); DDX_Control(pDX, IDC_COMBO_INPUT_FILTER_16, m_combo_input_filter[15]); } BEGIN_MESSAGE_MAP(CPropInputCfg, CDialogEx) END_MESSAGE_MAP() // CPropInputCfg 消息处理程序 int CPropInputCfg::GetData() { // TODO: 在此处添加实现代码. if (DataPtr != nullptr) { ShowParams(); } return 0; } int CPropInputCfg::SetData() { // TODO: 在此处添加实现代码. return 0; } int CPropInputCfg::ShowParams() { // TODO: 在此处添加实现代码. int i = 0; ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_1))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_2))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_3))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_4))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_5))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_6))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_7))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_8))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_9))->ShowWindow(SW_HIDE); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_10))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_11))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_12))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_13))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_14))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_15))->SetCurSel(i); ((CComboBox *)GetDlgItem(IDC_COMBO_INPUT_FILTER_16))->SetCurSel(i); return 0; } int CPropInputCfg::GetParams() { // TODO: 在此处添加实现代码. return 0; }