📄 xspview.h
字号:
// xspView.h : interface of the CXspView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "MyButton.h"
//}}AFX_INCLUDES
#if !defined(AFX_XSPVIEW_H__C69006A0_A54C_4283_90F0_9559F45CE874__INCLUDED_)
#define AFX_XSPVIEW_H__C69006A0_A54C_4283_90F0_9559F45CE874__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CXspView : public CFormView
{
protected: // create from serialization only
CXspView();
DECLARE_DYNCREATE(CXspView)
public:
//{{AFX_DATA(CXspView)
enum { IDD = IDD_XSP_FORM };
CStatic m_runstatus;
CStatic m_sysstatus;
CStatic m_needle;
CStatic m_z;
CStatic m_y;
CStatic m_x;
CStatic m_poslimit;
CStatic m_polestatus;
CStatic m_motorinfo;
CStatic m_jxstatus;
CStatic m_gxstatus;
CStatic m_breakline;
CStatic m_bhzstatus;
CMyButton m_screen;
CStatic m_speed;
CMSComm m_comm;
short m_paradata;
BYTE m_paraindex;
//}}AFX_DATA
// Attributes
public:
CXspDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CXspView)
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:
unsigned char systemstatus;
unsigned char runstatus;
POINT m_point,m_point1;
CDC * dcscreen;
unsigned char haveset;
unsigned char Xstep[60],Ystep[60];
unsigned int stepcount;
unsigned int speed;
unsigned char movespeed;
unsigned int realspeed;
int X,Y;
unsigned char MotorInfo;
unsigned char BHZinfo;
unsigned char needle;
unsigned char needleerror;
unsigned char jx_status;
unsigned char gx_status;
unsigned char positionlimit;
unsigned char Z;
unsigned char breakline;
unsigned char polestatus;
unsigned char needlecount;
void ProtocolDeal(unsigned char *pBuf);
void SendData(unsigned char *pBuf);
virtual ~CXspView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CXspView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnOnCommMscomm1();
afx_msg void OnOne();
afx_msg void OnButton1();
afx_msg void OnJiansu();
afx_msg void OnShensu();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnPaint();
afx_msg void OnTwo();
afx_msg void OnThree();
afx_msg void OnFour();
afx_msg void OnFive();
afx_msg void OnSix();
afx_msg void OnSeven();
afx_msg void OnEight();
afx_msg void OnNine();
afx_msg void OnLeft();
afx_msg void OnRight();
afx_msg void OnUp();
afx_msg void OnDown();
afx_msg void OnSpeed();
afx_msg void OnCixiu();
afx_msg void OnDotrun();
afx_msg void OnStopdown();
afx_msg void OnBackorg();
afx_msg void OnJianxian();
afx_msg void OnJxtest();
afx_msg void OnKxtest();
afx_msg void OnGxtest();
afx_msg void OnDxcheck();
afx_msg void OnExitdxcheck();
afx_msg void OnZero();
afx_msg void OnTestspeed();
afx_msg void OnShake();
afx_msg void OnChangepara();
afx_msg void OnButton2();
afx_msg void OnButton3();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in xspView.cpp
inline CXspDoc* CXspView::GetDocument()
{ return (CXspDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XSPVIEW_H__C69006A0_A54C_4283_90F0_9559F45CE874__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -