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

📄 comm2410dlg.h

📁 wince下用evc写的一个串口通讯的程序
💻 H
字号:
// Comm2410Dlg.h : header file
//

#if !defined(AFX_COMM2410DLG_H__EB03AFDF_D713_4388_AF5A_D6AF9B69B49B__INCLUDED_)
#define AFX_COMM2410DLG_H__EB03AFDF_D713_4388_AF5A_D6AF9B69B49B__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CComm2410Dlg dialog

class CComm2410Dlg : public CDialog
{
// Construction
public:
	CComm2410Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CComm2410Dlg)
	enum { IDD = IDD_COMM2410_DIALOG };
	CEdit	m_iSendCount;
	CEdit	m_iTemp;
	CEdit	m_iReceiveData;
	CString	m_iCom1;
	CString	m_iCom2;
	int		m_iBaud;
	int		m_iData;
	int		m_iParity;
	int		m_iPort;
	int		m_iStop;
	CString	m_senddata;
	HANDLE hPort;
	int		m_count;
	int		m_iCharhex;
	CString	m_iEndhex;
	CString	m_iStarthex;
	BOOL	m_iForEver;
	int		m_iInterval;
	//}}AFX_DATA

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

private:
	CString strportname;
	CByteArray Tempchar;

	int usedtime;
 

	BOOL    bOpen;
	void SendData();
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CComm2410Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonStatus();
	afx_msg void OnButtonSend();
	afx_msg void OnButtonClear();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnRadioFashion();
	afx_msg void OnRadio3();
	afx_msg void OnKillfocusEditSendnumber();
	afx_msg void OnKillfocusEditStarthex();
	afx_msg void OnKillfocusEditEndhex();
	afx_msg void OnRadioForever();
	afx_msg void OnCheckForever();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_COMM2410DLG_H__EB03AFDF_D713_4388_AF5A_D6AF9B69B49B__INCLUDED_)

⌨️ 快捷键说明

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