scommtestdlg.h

来自「一个串口调试助手,可以将串口接收到的数据筛选并保存到数据,别保存数据到文件等.」· C头文件 代码 · 共 95 行

H
95
字号
// SCommTestDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_SCOMMTESTDLG_H__E2235C3F_12F4_47DF_85DB_56436EF518C1__INCLUDED_)
#define AFX_SCOMMTESTDLG_H__E2235C3F_12F4_47DF_85DB_56436EF518C1__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSCommTestDlg dialog

class CSCommTestDlg : public CDialog
{
// Construction
public:
	void adddata(CString str1, CString str2, CString str3, CString str4);
	void adddata(CString str1, CString str2, CString str3, CString str4,CString str5);
	char ConvertHexChar(char ch);
	int String2Hex(CString str, CByteArray &senddata);
	CSCommTestDlg(CWnd* pParent = NULL);	// standard constructor
    
// Dialog Data
	//{{AFX_DATA(CSCommTestDlg)
	enum { IDD = IDD_SCOMMTEST_DIALOG };
	CComboBox	m_botelv;
	CComboBox	m_Port;
	CButton	m_ctrlHexSend;
	CString	m_strRXData;
	CString	m_strTXData;
	CMSComm	m_ctrlComm;
	CString	m_Edit1;
	CString	m_Edit2;
	CString	m_Edit3;
	CString	m_Edit4;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSCommTestDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CString strtemp2;
	CString strtemp3;
	HICON m_hIcon;
    CString fileName;
	CString str_set;
	CString str_shidu;
	CString str_temp;
	CString str_time;
	CString str_settime;
	int cout;
	// Generated message map functions
	//{{AFX_MSG(CSCommTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnComm();
	afx_msg void OnButtonManualsend();
	afx_msg void OnMexit();
	afx_msg void OnMnew();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnBdata();
	afx_msg void OnMabout();
	afx_msg void OnButtonManualsend2();
	afx_msg void OnMdatabase();
	afx_msg void OnBopencom();
	afx_msg void OnBclosecom();
	afx_msg void OnChangeEditRxdata();
	afx_msg void On1();
	afx_msg void On2();
	afx_msg void On3();
	afx_msg void On4();
	afx_msg void OnBsave();
	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_SCOMMTESTDLG_H__E2235C3F_12F4_47DF_85DB_56436EF518C1__INCLUDED_)

⌨️ 快捷键说明

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