提交 | 用户 | age
|
0ed438
|
1 |
#pragma once
|
Q |
2 |
|
|
3 |
|
|
4 |
// CDialogCommSet1 对话框
|
|
5 |
|
|
6 |
class CDialogCommSet1 : public CDialogEx
|
|
7 |
{
|
|
8 |
DECLARE_DYNAMIC(CDialogCommSet1)
|
|
9 |
|
|
10 |
public:
|
|
11 |
CDialogCommSet1(CWnd* pParent = nullptr); // 标准构造函数
|
|
12 |
virtual ~CDialogCommSet1();
|
|
13 |
|
|
14 |
// 对话框数据
|
|
15 |
#ifdef AFX_DESIGN_TIME
|
|
16 |
enum { IDD = IDD_DIALOG_COMMSET1 };
|
|
17 |
#endif
|
|
18 |
|
|
19 |
protected:
|
|
20 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
21 |
DECLARE_MESSAGE_MAP()
|
|
22 |
afx_msg BOOL OnDeviceChange(UINT nEventType, DWORD_PTR dwData);
|
|
23 |
public:
|
|
24 |
virtual BOOL OnInitDialog();
|
|
25 |
virtual void OnOK();
|
|
26 |
int DisplayParams();
|
|
27 |
int GetParams();
|
|
28 |
int ShowParams();
|
|
29 |
int UpdateComPortList();
|
|
30 |
CComboBox m_combo_comport;
|
|
31 |
CString sComSelStr;
|
|
32 |
int m_nComNum;
|
|
33 |
int m_nBaudRate;
|
|
34 |
CStringA m_Settings;
|
|
35 |
|
|
36 |
afx_msg void OnBnClickedOk();
|
|
37 |
afx_msg void OnBnClickedButton1();
|
|
38 |
};
|