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

📄 tdramdlg.h

📁 通过串口监测TDRAM是否正常工作的程序。
💻 H
字号:
// TDRAMDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_TDRAMDLG_H__99EF6FAF_6AC1_4C34_A610_8A2E4B62AFEC__INCLUDED_)
#define AFX_TDRAMDLG_H__99EF6FAF_6AC1_4C34_A610_8A2E4B62AFEC__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTDRAMDlg dialog

class CTDRAMDlg : public CDialog
{
// Construction
public:
	void SendData();
	int String2Hex(CString str, CByteArray &senddata);
	char Char2Hex(char ch);
	CString m_strDRAM;
	BOOL m_bFlagCom;
	CString m_strRXData;
	CString m_strCommand;
	BYTE m_nSData;
	int m_nCommEvent;
	CString m_strComStatus;
	int m_nStopBits;
	int m_nDataBits;
	char m_cParity;
	int m_nBaud;
	int m_nStart;
	int m_nTXData;
	BOOL m_bStart;
	CString m_strPort;
	CByteArray binData;
	CTDRAMDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTDRAMDlg)
	enum { IDD = IDD_TDRAM_DIALOG };
	CStatic	m_ctrlDisplay;
	CComboBox	m_ctrlStopBits;
	CComboBox	m_ctrlDataBits;
	CComboBox	m_ctrlParity;
	CComboBox	m_ctrlBaud;
	CComboBox	m_ctrlPort;
	CMSComm	m_ctrlComm;
	int		m_CW;
	int		m_Speed;
	int		m_Control;
	CString	m_strTXData;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTDRAMDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelchangeComboPort();
	afx_msg void OnSelchangeComboBaud();
	afx_msg void OnSelchangeComboParity();
	afx_msg void OnSelchangeComboDatabits();
	afx_msg void OnSelchangeComboStopbits();
	afx_msg void OnComm();
	afx_msg void OnButtonClosecom();
	afx_msg void OnSelchangeComboDram();
	afx_msg void OnButtonCleartx();
	afx_msg void OnButtonClearrx();
	afx_msg void OnButtonSend();
	virtual void OnOK();
	afx_msg void OnStop();
	afx_msg void OnChangeTxdata();
	afx_msg void OnBegin();
	afx_msg void OnClose();
	afx_msg void OnCw();
	afx_msg void OnCcw();
	afx_msg void OnFast();
	afx_msg void OnSlow();
	afx_msg void OnInterior();
	afx_msg void OnExterior();
	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_TDRAMDLG_H__99EF6FAF_6AC1_4C34_A610_8A2E4B62AFEC__INCLUDED_)

⌨️ 快捷键说明

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