// H7 ServerDlg.h : header file // #pragma once #include "afxwin.h" #include "TcpServerClass.h" // CH7ServerDlg dialog class CH7ServerDlg : public CDialog { // Construction public: CH7ServerDlg(CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_H7SERVER_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: HICON m_hIcon; TcpServerClass TcpServer; // Generated message map functions virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: CEdit m_Status; CComboBox m_BaudRate; CComboBox m_Serial; CButton m_Stop; CEdit m_Port; int m_Start; CButton m_Restart; afx_msg void OnBnClickedStart(); int StartTcp(void); afx_msg void OnBnClickedTest(); afx_msg void OnBnClickedRestart(); void ServerInit(void); };