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

📄 comtestdlg.h

📁 基于WinCE和ARMV4I的串口调试程序
💻 H
字号:
// COMTestDlg.h : header file
//

#if !defined(AFX_COMTESTDLG_H__0CBE31DD_3D8B_45E7_BC68_039B31E7D652__INCLUDED_)
#define AFX_COMTESTDLG_H__0CBE31DD_3D8B_45E7_BC68_039B31E7D652__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCOMTestDlg dialog

class CCOMTestDlg : public CDialog
{
// Construction
public:
	BOOL AboveSeven();
	DWORD m_nTx;
	CString strComm;
	BOOL m_bConnected;
	HANDLE hReadThread;
	BOOL InitCommTimeouts();
	BOOL InitDCB();
	BOOL ClosePort(HANDLE hCommPort);
	DWORD WritePort(BYTE *buf, DWORD dwByteToWrite);
	BOOL OpenPort(LPTSTR lpszPortName);
	DWORD nBaud;
	CString strCom;
	CCOMTestDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCOMTestDlg)
	enum { IDD = IDD_COMTEST_DIALOG };
	CEdit	m_wndRx;
	CComboBox	m_wndPort;
	CComboBox	m_wndBaud;
	CString	m_strReceive;
	CString	m_strSend;
	CString	m_strExample;
	CString	m_strTx;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCOMTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonOpen();
	afx_msg void OnSelchangeComboPort();
	afx_msg void OnSelchangeComboBaud();
	afx_msg void OnButtonSend();
	afx_msg void OnDestroy();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnButtonClear();
	afx_msg void OnEditchangeComboExample();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_COMTESTDLG_H__0CBE31DD_3D8B_45E7_BC68_039B31E7D652__INCLUDED_)

⌨️ 快捷键说明

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