// DialogSelDevice.cpp: 实现文件
|
//
|
|
#include "pch.h"
|
#include "ConfigTool.h"
|
#include "DialogSelDevice.h"
|
#include "afxdialogex.h"
|
|
|
// CDialogSelDevice 对话框
|
|
IMPLEMENT_DYNAMIC(CDialogSelDevice, CDialogEx)
|
|
CDialogSelDevice::CDialogSelDevice(CWnd* pParent /*=nullptr*/)
|
: CDialogEx(IDD_DIALOG_SEL_DEVICE, pParent)
|
{
|
|
}
|
|
CDialogSelDevice::~CDialogSelDevice()
|
{
|
}
|
|
void CDialogSelDevice::DoDataExchange(CDataExchange* pDX)
|
{
|
CDialogEx::DoDataExchange(pDX);
|
DDX_Control(pDX, IDC_LIST_FAMILY, m_list_family);
|
DDX_Control(pDX, IDC_LIST_DEVICE, m_list_device);
|
}
|
|
|
BEGIN_MESSAGE_MAP(CDialogSelDevice, CDialogEx)
|
ON_BN_CLICKED(IDOK, &CDialogSelDevice::OnBnClickedOk)
|
END_MESSAGE_MAP()
|
|
|
// CDialogSelDevice 消息处理程序
|
|
BOOL CDialogSelDevice::OnInitDialog()
|
{
|
CDialogEx::OnInitDialog();
|
|
// TODO: 在此添加额外的初始化
|
m_list_family.AddString(_T("分布式IO模块"));
|
m_list_family.AddString(_T("光源控制器"));
|
m_list_family.AddString(_T("协议转换器"));
|
m_list_family.AddString(_T("无线分布式IO模块"));
|
|
|
m_list_device.AddString(_T("KL10-E16D-N1"));
|
m_list_device.AddString(_T("KL10-E08D-N1"));
|
m_list_device.AddString(_T("KL10-E08D-MINI"));
|
|
m_list_device.AddString(_T("KL20-E16D-N1"));
|
m_list_device.AddString(_T("KL20-E08D-N1"));
|
m_list_device.AddString(_T("KL20-E08D-MINI"));
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
// 异常: OCX 属性页应返回 FALSE
|
}
|
|
|
void CDialogSelDevice::OnBnClickedOk()
|
{
|
// TODO: 在此添加控件通知处理程序代码
|
CDialogEx::OnOK();
|
}
|
|
|