comtestdlg.h

来自「基于WinCE和ARMV4I的串口调试程序」· C头文件 代码 · 共 73 行

H
73
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?