motordlg.h

来自「利用vc编写的通过单片机控制三个步进电机的程序」· C头文件 代码 · 共 65 行

H
65
字号
#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 + =
减小字号Ctrl + -
显示快捷键?