// SinglePortDlg.h : header file // #if !defined(AFX_SINGLEPORTDLG_H__BC4624A0_3E43_475E_814E_28D24A788E38__INCLUDED_) #define AFX_SINGLEPORTDLG_H__BC4624A0_3E43_475E_814E_28D24A788E38__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define CHECK_ALIVETIMEOUT 100 // The timeout value for connecting SLAN in milliseconds ///////////////////////////////////////////////////////////////////////////// // CSinglePortDlg dialog class CSinglePortDlg : public CDialog { // Construction public: int m_DataStatus; int port_id; void GetInputData(void); void CallClose(void); char m_szServerPswd[128]; void findCharToSend(char* pcSendChar); CSinglePortDlg(CWnd* pParent = NULL); // standard constructor int TotalBreakCount; // Dialog Data //{{AFX_DATA(CSinglePortDlg) enum { IDD = IDD_SINGLEPORT_DIALOG }; CButton m_ResetServerCtrl; CEdit m_DSRCtrl; CEdit m_DCDCtrl; CEdit m_CTSCtrl; CEdit m_LineStatusCtrl; CButton m_OpenCtrl; CButton m_CloseCtrl; CEdit m_PortCtrl; CEdit m_Transceiver; int m_Port; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSinglePortDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL virtual BOOL PreTranslateMessage(MSG* pMsg); // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CSinglePortDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnOpen(); afx_msg void OnClose(); afx_msg void OnResetServer(); afx_msg void OnCheckAlive(); afx_msg void OnChangeTransceiver(); virtual void OnCancel(); virtual void OnOK(); afx_msg void OnBtnExit(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SINGLEPORTDLG_H__BC4624A0_3E43_475E_814E_28D24A788E38__INCLUDED_)