1 |
// H7 ServerDlg.h : header file
|
2 |
//
|
3 |
|
4 |
#pragma once
|
5 |
#include "afxwin.h"
|
6 |
#include "TcpServerClass.h"
|
7 |
|
8 |
// CH7ServerDlg dialog
|
9 |
class CH7ServerDlg : public CDialog
|
10 |
{
|
11 |
// Construction
|
12 |
public:
|
13 |
CH7ServerDlg(CWnd* pParent = NULL); // standard constructor
|
14 |
|
15 |
// Dialog Data
|
16 |
enum { IDD = IDD_H7SERVER_DIALOG };
|
17 |
|
18 |
protected:
|
19 |
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
20 |
|
21 |
|
22 |
// Implementation
|
23 |
protected:
|
24 |
HICON m_hIcon;
|
25 |
TcpServerClass TcpServer;
|
26 |
|
27 |
// Generated message map functions
|
28 |
virtual BOOL OnInitDialog();
|
29 |
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
30 |
afx_msg void OnPaint();
|
31 |
afx_msg HCURSOR OnQueryDragIcon();
|
32 |
DECLARE_MESSAGE_MAP()
|
33 |
public:
|
34 |
CEdit m_Status;
|
35 |
CComboBox m_BaudRate;
|
36 |
CComboBox m_Serial;
|
37 |
CButton m_Stop;
|
38 |
CEdit m_Port;
|
39 |
int m_Start;
|
40 |
CButton m_Restart;
|
41 |
afx_msg void OnBnClickedStart();
|
42 |
int StartTcp(void);
|
43 |
afx_msg void OnBnClickedTest();
|
44 |
afx_msg void OnBnClickedRestart();
|
45 |
void ServerInit(void);
|
46 |
};
|