#if !defined(AFX_PAGESERIALPORT_H__0663B597_6469_4208_9249_650D0D6C6CAA__INCLUDED_) #define AFX_PAGESERIALPORT_H__0663B597_6469_4208_9249_650D0D6C6CAA__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // PageSerialPort.h : header file // #define MAX_SERIAL_PORT 2 ///////////////////////////////////////////////////////////////////////////// // CPageSerialPort dialog #include "ParamDlg.h" class CPageSerialPort : public CParamDlg { // Construction public: CPageSerialPort(CWnd* pParent, CMgrNVE* pMgrCM, CConnectionManager *pConnMgr); // standard constructor // Dialog Data //{{AFX_DATA(CPageSerialPort) enum { IDD = IDD_PG_SERIAL_PORT }; CComboBox m_cbStopbit; CComboBox m_cbPort; CComboBox m_cbParity; CComboBox m_cbFlowControl; CComboBox m_cbBaudrate; CString m_strText; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPageSerialPort) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation BOOL SaveSetting(); BOOL ResetSetting(); BOOL UpdateSetting(); protected: // Generated message map functions //{{AFX_MSG(CPageSerialPort) virtual BOOL OnInitDialog(); afx_msg void OnSelchangeCbPort(); afx_msg void OnBtnApply(); afx_msg void OnBtnSend(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: void ShowSerialInfo(); private: ULONG m_uPort; DCB m_SerialInfo[MAX_SERIAL_PORT]; INet5 *m_pNet5Api; IMessageManager *m_pMsgMgr; }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PAGESERIALPORT_H__0663B597_6469_4208_9249_650D0D6C6CAA__INCLUDED_)