📄 activexcommview.h
字号:
// ActivexcommView.h : interface of the CActivexcommView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "afxmt.h"
//}}AFX_INCLUDES
#if !defined(AFX_ACTIVEXCOMMVIEW_H__FE3760EF_59C1_11D5_9E25_B54C1B710170__INCLUDED_)
#define AFX_ACTIVEXCOMMVIEW_H__FE3760EF_59C1_11D5_9E25_B54C1B710170__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CActivexcommView : public CFormView
{
protected: // create from serialization only
CActivexcommView();
DECLARE_DYNCREATE(CActivexcommView)
public:
//{{AFX_DATA(CActivexcommView)
enum { IDD = IDD_ACTIVEXCOMM_FORM };
CMSComm m_comm;
CString m_receive;
CString m_youwei;
CString m_chesu;
int m_dangrilicheng;
CString m_signal;
int m_zhuansu;
CString m_abs;
CString m_back;
CString m_left;
CString m_moter;
CString m_right;
CString m_sache;
CString m_sacheshilin;
CString m_stop;
double m_zonglicheng;
CString m_signal10;
CString m_signal11;
CString m_signal12;
CString m_signal9;
float m_dianya;
float m_shuiwen;
//}}AFX_DATA
int count;
BYTE data[1024];
CEvent StopThread;
BOOL bDanpianji1Ready;
BOOL bDanpianji1Finish;
BOOL bDanpianji1Error;
BOOL bStop1;
BOOL bDanpianji2Ready;
BOOL bDanpianji2Finish;
BOOL bDanpianji2Error;
BOOL bStop2;
BOOL bBlackBoxReady;
BOOL bBlackBoxFinish;
BOOL bBlackBoxError;
BOOL bStopBlackBox;
// Attributes
public:
CActivexcommDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CActivexcommView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void ThreadEntry();
void XhDianming(int dpjn);
void CollectDataCmd(int nDpj);
void Danpianji2Data();
void Danpianji1Data();
void SendCommand(int danpianji);
void SendDate(int i);
virtual ~CActivexcommView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CActivexcommView)
afx_msg void OnComm();
afx_msg void OnButton1();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ActivexcommView.cpp
inline CActivexcommDoc* CActivexcommView::GetDocument()
{ return (CActivexcommDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ACTIVEXCOMMVIEW_H__FE3760EF_59C1_11D5_9E25_B54C1B710170__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -