PeugeotView.h
上传用户:asikq0571
上传日期:2014-07-12
资源大小:528k
文件大小:3k
- // PeugeotView.h : interface of the CPeugeotView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_PEUGEOTVIEW_H__B26D1D65_4811_4552_B23B_90B7276A9766__INCLUDED_)
- #define AFX_PEUGEOTVIEW_H__B26D1D65_4811_4552_B23B_90B7276A9766__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "MainFrm.h"
- class CPeugeotView : public CEditView
- {
- protected: // create from serialization only
- CPeugeotView();
- DECLARE_DYNCREATE(CPeugeotView)
- // Attributes
- public:
- CPeugeotDoc* GetDocument();
- // Operations
- public:
- CPrtObj* m_pPrtObj; //规约对象指针,指向所选的规约
- CAsyncSocket* m_pSocketObj; //网络通讯对象指针,指向所选网络端口(不区分TCP协议)
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CPeugeotView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ClearMsg();
- void NetReceive();
- void DisplayMsg(CString dspstr);
- BOOL Send(BYTE* pBuff, DWORD dwBytesToSend, DWORD& dwBytesSended);
- virtual ~CPeugeotView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CPeugeotView)
- afx_msg void OnTimer(UINT nIDEvent);
- //}}AFX_MSG
- //串口: '接收到数据'消息处理函数
- afx_msg LRESULT OnCommNotify(WPARAM wParam,LPARAM lParam);
- //服务端:客户端连接到服务端
- afx_msg LRESULT OnTCPSrvConnected(WPARAM wParam,LPARAM lParam);
- //服务端:客户端与服务端断开连接
- afx_msg LRESULT OnTCPSrvClosed(WPARAM wParam,LPARAM lParam);
- //服务端:'接收到数据' 消息处理函数
- afx_msg LRESULT OnTCPSrvRec(WPARAM wParam,LPARAM lParam);
- //客户端:客户端连接到服务端
- afx_msg LRESULT OnTCPCltConnected(WPARAM wParam,LPARAM lParam);
- //客户端:服务端端口断开
- afx_msg LRESULT OnTCPCltClosed(WPARAM wParam,LPARAM lParam);
- //客户端:'接收到数据' 消息处理函数
- afx_msg LRESULT OnTCPCltRec(WPARAM wParam,LPARAM lParam);
- //UDP:'接收到数据' 消息处理函数
- afx_msg LRESULT OnUDPRec(WPARAM wParam,LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in PeugeotView.cpp
- inline CPeugeotDoc* CPeugeotView::GetDocument()
- { return (CPeugeotDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_PEUGEOTVIEW_H__B26D1D65_4811_4552_B23B_90B7276A9766__INCLUDED_)