/[H7]/trunk/H7 Server/H7 ServerDlg.h
ViewVC logotype

Contents of /trunk/H7 Server/H7 ServerDlg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (show annotations) (download)
Wed Jan 31 12:42:51 2007 UTC (17 years, 3 months ago) by hedin
File MIME type: text/plain
File size: 1160 byte(s)
Communication established between PIC and client:D
1 // H7 ServerDlg.h : header file
2 //
3
4 #pragma once
5 #include "afxwin.h"
6 #include "TcpServerClass.h"
7 #include "H7Serial.h"
8
9 // CH7ServerDlg dialog
10 class CH7ServerDlg : public CDialog
11 {
12 // Construction
13 public:
14 CH7ServerDlg(CWnd* pParent = NULL); // standard constructor
15
16 // Dialog Data
17 enum { IDD = IDD_H7SERVER_DIALOG };
18
19 protected:
20 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
21
22
23
24 // Implementation
25 protected:
26 HICON m_hIcon;
27 TcpServerClass TcpServer;
28
29 // Generated message map functions
30 virtual BOOL OnInitDialog();
31 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
32 afx_msg void OnPaint();
33 afx_msg HCURSOR OnQueryDragIcon();
34 DECLARE_MESSAGE_MAP()
35 public:
36 CEdit m_Status;
37 CComboBox m_BaudRate;
38 CComboBox m_Serial;
39 CButton m_Stop;
40 CEdit m_Port;
41 int m_Start;
42 CH7Serial H7Serial;
43 CButton m_Restart;
44 afx_msg void OnBnClickedStart();
45 int StartTcp(void);
46 afx_msg void OnBnClickedTest();
47 afx_msg void OnBnClickedRestart();
48 bool ServerInit(void);
49 int StartSerial(void);
50 void NewLine(void);
51 CString OnOff(int value);
52 void UpdateStatus(CString name, short value);
53 };

  ViewVC Help
Powered by ViewVC 1.1.20