📄 maxoncomdlg.h
字号:
// maxoncomDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_MAXONCOMDLG_H__C9912D40_2D50_4F1B_BD29_379299096F84__INCLUDED_)
#define AFX_MAXONCOMDLG_H__C9912D40_2D50_4F1B_BD29_379299096F84__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMaxoncomDlg dialog
class CMaxoncomDlg : public CDialog
{
// Construction
BYTE strtemp0,strtemp1,strtemp2;
LONG len,k;
BYTE rxdata[2048]; //设置BYTE数组 An 8-bit integerthat is not signed.
public:
BOOL positionorcurrent;
CMaxoncomDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMaxoncomDlg)
enum { IDD = IDD_MAXONCOM_DIALOG };
CMSComm m_mscomm2;
CMSComm m_mscomm1;
CString m_sDistance;
CString m_sVelocity;
CString m_sAcceleration;
CString m_sDeceleration;
CString m_sDistance_Rt;
CString m_sVelocity_Rt;
CString m_sAcceleration_Rt;
CString m_sDeceleration_Rt;
CString m_sCurrent_Rt;
//}}AFX_DATA
double m_dDistance,m_dVelocity,m_dAcceleration,m_dDeceleration;
double m_dDistance_Rt,m_dVelocity_Rt,m_dAcceleration_Rt,m_dDeceleration_Rt,m_dCurrent_Rt;
char str_temp[100]; //用于暂存运动控制命令
CString str0,str1,str2,str3,str4,str5,str6,str7,str8,str9,str10;
int i,j,m,n,temp;
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMaxoncomDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMaxoncomDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnEnable();
afx_msg void OnBtnDisable();
afx_msg void OnOnCommMscomm1();
afx_msg void OnOnCommMscomm2();
afx_msg void OnBtnStop();
afx_msg void OnBtnStart();
afx_msg void OnTimer(UINT nIDEvent);
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAXONCOMDLG_H__C9912D40_2D50_4F1B_BD29_379299096F84__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -