提交 | 用户 | age
|
418cb3
|
1 |
// DialogSelDevice.cpp: 实现文件
|
Q |
2 |
//
|
|
3 |
|
|
4 |
#include "pch.h"
|
|
5 |
#include "ConfigTool.h"
|
|
6 |
#include "DialogSelDevice.h"
|
|
7 |
#include "afxdialogex.h"
|
|
8 |
|
|
9 |
|
|
10 |
// CDialogSelDevice 对话框
|
|
11 |
|
|
12 |
IMPLEMENT_DYNAMIC(CDialogSelDevice, CDialogEx)
|
|
13 |
|
|
14 |
CDialogSelDevice::CDialogSelDevice(CWnd* pParent /*=nullptr*/)
|
|
15 |
: CDialogEx(IDD_DIALOG_SEL_DEVICE, pParent)
|
|
16 |
{
|
|
17 |
|
|
18 |
}
|
|
19 |
|
|
20 |
CDialogSelDevice::~CDialogSelDevice()
|
|
21 |
{
|
|
22 |
}
|
|
23 |
|
|
24 |
void CDialogSelDevice::DoDataExchange(CDataExchange* pDX)
|
|
25 |
{
|
|
26 |
CDialogEx::DoDataExchange(pDX);
|
|
27 |
DDX_Control(pDX, IDC_LIST_FAMILY, m_list_family);
|
|
28 |
DDX_Control(pDX, IDC_LIST_DEVICE, m_list_device);
|
|
29 |
}
|
|
30 |
|
|
31 |
|
|
32 |
BEGIN_MESSAGE_MAP(CDialogSelDevice, CDialogEx)
|
|
33 |
ON_BN_CLICKED(IDOK, &CDialogSelDevice::OnBnClickedOk)
|
|
34 |
END_MESSAGE_MAP()
|
|
35 |
|
|
36 |
|
|
37 |
// CDialogSelDevice 消息处理程序
|
|
38 |
|
|
39 |
BOOL CDialogSelDevice::OnInitDialog()
|
|
40 |
{
|
|
41 |
CDialogEx::OnInitDialog();
|
|
42 |
|
|
43 |
// TODO: 在此添加额外的初始化
|
|
44 |
m_list_family.AddString(_T("分布式IO模块"));
|
|
45 |
m_list_family.AddString(_T("光源控制器"));
|
|
46 |
m_list_family.AddString(_T("协议转换器"));
|
|
47 |
m_list_family.AddString(_T("无线分布式IO模块"));
|
|
48 |
|
|
49 |
|
|
50 |
m_list_device.AddString(_T("KL10-E16D-N1"));
|
|
51 |
m_list_device.AddString(_T("KL10-E08D-N1"));
|
|
52 |
m_list_device.AddString(_T("KL10-E08D-MINI"));
|
|
53 |
|
|
54 |
m_list_device.AddString(_T("KL20-E16D-N1"));
|
|
55 |
m_list_device.AddString(_T("KL20-E08D-N1"));
|
|
56 |
m_list_device.AddString(_T("KL20-E08D-MINI"));
|
|
57 |
|
|
58 |
return TRUE; // return TRUE unless you set the focus to a control
|
|
59 |
// 异常: OCX 属性页应返回 FALSE
|
|
60 |
}
|
|
61 |
|
|
62 |
|
|
63 |
void CDialogSelDevice::OnBnClickedOk()
|
|
64 |
{
|
|
65 |
// TODO: 在此添加控件通知处理程序代码
|
|
66 |
CDialogEx::OnOK();
|
|
67 |
}
|
|
68 |
|
|
69 |
|