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

📄 oxcygentestdlg.h

📁 本人用VC6.0开发的单片机通过串口与PC机通信的上位机,通信协议在说明文档中已经写出,用户在单片机上编写串口函数时按照通信协议,便可以很方便通过此软件与PC机通信.
💻 H
字号:
// OxcygenTestDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_OXCYGENTESTDLG_H__7ED305E9_1816_4755_AAB7_2EC8FBDA6482__INCLUDED_)
#define AFX_OXCYGENTESTDLG_H__7ED305E9_1816_4755_AAB7_2EC8FBDA6482__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// COxcygenTestDlg dialog

class COxcygenTestDlg : public CDialog
{
// Construction
public:
	COxcygenTestDlg(CWnd* pParent = NULL);	// standard constructor
	int String2Hex(CString str, CByteArray &senddata);
	int String16Hex(CString str);
	unsigned char String2int(char a, char b);
	char ConvertHexChar(char ch);
	int m_state;
	CString str;//????????????????

// Dialog Data
	//{{AFX_DATA(COxcygenTestDlg)
	enum { IDD = IDD_OXCYGENTEST_DIALOG };
	CMSComm	m_com;
	CString	m_recive;
	int		m_check;
	long	m_style;
	long	m_gasadc;
	float	m_gasppm;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(COxcygenTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnOnCommMscomm();
	afx_msg void OnButtonStart();
	afx_msg void OnButtonSend();
	afx_msg void OnButtonSet();
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonDec();
	afx_msg void OnButtonFunc();
	afx_msg void OnButtonOk();
	afx_msg void OnButtonQuit();
	afx_msg void OnButtonInfo();
	afx_msg void OnButtonCheck();
	afx_msg void OnChangeEditSend();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonA1();
	afx_msg void OnButtonA2();
	afx_msg void OnButtonGas();
	afx_msg void OnButtonMeas();
	afx_msg void OnButtonRevise();
	afx_msg void OnButtonBak();
	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_OXCYGENTESTDLG_H__7ED305E9_1816_4755_AAB7_2EC8FBDA6482__INCLUDED_)

⌨️ 快捷键说明

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