📄 motordlg.h
字号:
#if !defined(AFX_MOTORDLG_H__83F6A726_2285_403E_8A9C_4980812EC4F1__INCLUDED_)
#define AFX_MOTORDLG_H__83F6A726_2285_403E_8A9C_4980812EC4F1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MotorDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMotorDlg dialog
class CMotorDlg : public CDialog
{
// Construction
#define FRAM_LENGTH 8
public:
void WriteComPort();
void SetupComPort();
CMotorDlg(CWnd* pParent = NULL); // standard constructor
HANDLE hCom;
unsigned char m_SendBuf[10];
char m_com_state;
char m_ComNum;
unsigned char m_motor_num;
unsigned char m_direction;
// Dialog Data
//{{AFX_DATA(CMotorDlg)
enum { IDD = IDD_DIALOG_MOTOR };
CComboBox m_MotorSel;
int m_StepsA;
int m_StepsB;
int m_StepsC;
int m_Steps;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMotorDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CMotorDlg)
afx_msg void OnClose();
afx_msg void OnSelchangeComboMotorsel();
afx_msg void OnButtonMove();
afx_msg void OnButtonReset();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MOTORDLG_H__83F6A726_2285_403E_8A9C_4980812EC4F1__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -