⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dyrasview.h

📁 远程串口通信程序
💻 H
字号:
// DyRasView.h : interface of the CDyRasView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DYRASVIEW_H__16C304AF_B7B2_11D4_9AAD_0050BF00F589__INCLUDED_)
#define AFX_DYRASVIEW_H__16C304AF_B7B2_11D4_9AAD_0050BF00F589__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CCommSocket;
class CDyRasDoc;

class CDyRasView : public CFormView
{
protected: // create from serialization only
	CDyRasView();
	DECLARE_DYNCREATE(CDyRasView)

public:
	//{{AFX_DATA(CDyRasView)
	enum { IDD = IDD_DYRAS_FORM };
	CListBox	m_ctlSend;
	CListBox	m_ctlReceive;
	CListBox	m_ctlRasRun;
	//}}AFX_DATA
// Attributes
public:
	CDyRasDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDyRasView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	BYTE JBBUFF[1024];
	BYTE JDBUFF[1024];
	BYTE ZGBUFF[1024];
	int m_iTime;

	BOOL m_bLockSocket;
	void SendTestMsg(CCommSocket *pCommSocket,BYTE i);
//	BYTE* JbpBuf;
//	BYTE* JdpBuf;
//	BYTE* ZgpBuf;
//	HWND m_hReadMod1;
//	HWND m_hReadMod2;
//	HWND m_hReadMod3;
	int m_iTempCountJb;
	BOOL m_bJbBegin;
	BOOL m_bJdBegin;
	BOOL m_bZgBegin;
	int m_iTempCountJd;
	BOOL m_bStrAddJd;
	int m_iTempCount;
	BOOL m_bStrAdd;
	void ShowFolloTime(LPCTSTR lpszstrMsg,char x);
	CString strOld;
	int m_iCount30;
	DWORD dwErrorFlag;
	COMSTAT comStat;
	DCB dcb1,dcb2,dcb3;
	void ReadComm3();
	void ReadComm2();
	void ReadComm1();
	int m_bModemConnect;
	void InitComm3();
	void InitComm2();
	CString m_strJbRepinfo;
	CString m_strJbRuninfo;
	CString m_strJdRepinfo;
	CString m_strJdRuninfo;
	CString m_strZgRepinfo;
	CString m_strZgRuninfo;
	HANDLE hCommDev1;
	HANDLE hCommDev2;
	HANDLE hCommDev3;
	void InitComm1();
	void DrawJbRect(int num);
	void DrawJdRect(int num);
	void DrawZgRect(int num);
	BOOL m_bMark[4];
	void DrawSerRect(int num);
	BOOL m_bConnectMark;
	void SendMsg(CCommSocket* pCommSocket,BYTE* pb);
	void AutoSendBack();
	void ReceiveMsg(CCommSocket* pCommSocket);
	BOOL ConnectServer();
	CCommSocket* m_pCommSocket;
	BOOL m_bZhaGangAct;
	BOOL m_bJiaDongAct;
	BOOL m_bJiaBeiAct;
	virtual ~CDyRasView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDyRasView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in DyRasView.cpp
inline CDyRasDoc* CDyRasView::GetDocument()
   { return (CDyRasDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DYRASVIEW_H__16C304AF_B7B2_11D4_9AAD_0050BF00F589__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -