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