⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 基于单片机基站的串口通讯dlg.h

📁 IRF905通过单片机控制IRF905然后通过电脑来控制单片机上驱动的电机实现远程控制
💻 H
字号:
// 基于单片机基站的串口通讯Dlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "sevensegnum.h"
//}}AFX_INCLUDES

#if !defined(AFX_DLG_H__6C8BCF77_45BE_4664_8F56_CB1194ADB73C__INCLUDED_)
#define AFX_DLG_H__6C8BCF77_45BE_4664_8F56_CB1194ADB73C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

class CMyDlg : public CDialog
{
// Construction
public:
	int a[4];
    int b[4];
	int Order2;
	int Order1;
	void SetMotor2();
	void SetMotor1();
	void Send();
	CString m_recv;
	CString m_send;
	CString Figure;
	CString Verification;
	CString Stop;
	CString Baudrate;
	int byte;
	int iPortNew;
	int iPortNumber;
	void PortSet();
	CMyDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CMyDlg)
	enum { IDD = IDD_MY_DIALOG };
	CComboBox	m_Figure;
	CComboBox	m_stop;
	CComboBox	m_verification;
	CComboBox	m_baudrate;
	CComboBox	m_byte;
	CComboBox	m_comNum;
	CMSComm	m_mscom;
	CSevenSegNum	m_motor1;
	CSevenSegNum	m_motor2;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CMyDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnClockwise();
	afx_msg void OnCommMscomm();
	afx_msg void OnSelchangeCOMnum();
	afx_msg void OnChangeSendEdit();
	afx_msg void OnSelchangebyte();
	afx_msg void OnSelchangeBaudrate();
	afx_msg void OnSelchangeStop();
	afx_msg void OnSelchangeVerification();
	afx_msg void OnSelchangeFigure();
	afx_msg void OnSave();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnReverse();
	afx_msg void OnStop();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnCancle();
	afx_msg void OnClockwise1();
    afx_msg void OnReverse1();
	afx_msg void OnStop1();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	char nn[20];
	SYSTEMTIME ttime;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLG_H__6C8BCF77_45BE_4664_8F56_CB1194ADB73C__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -