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

📄 commtestdlg.h

📁 基于CSerialPort的串口多线程通信程序
💻 H
字号:
/*
**	FILENAME			CommTestDlg.h
**
**	PURPOSE				This is the dialog that shows the comm activity.
**
**	CREATION DATE		15-09-1997
**	LAST MODIFICATION	12-11-1997
**
**	AUTHOR				Remon Spekreijse
**
*/

#if !defined(AFX_COMMTESTDLG_H__4FDAC186_34B5_11D1_9481_00805A147202__INCLUDED_)
#define AFX_COMMTESTDLG_H__4FDAC186_34B5_11D1_9481_00805A147202__INCLUDED_

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

#include "ColorStatic.h"
#include "SerialPort.h"

class CCommtestDlg : public CDialog
{

public:
	CCommtestDlg(CWnd* pParent = NULL);	// standard constructor

	//{{AFX_DATA(CCommtestDlg)
	enum { IDD = IDD_COMMTEST_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

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

// Implementation
protected:
	HICON			m_hIcon;
	CListBox		m_ListBox[2];
	CEdit			m_Edit[2];
	CSerialPort		m_Ports[2];
	CString			m_strReceived[2];

	// Generated message map functions
	//{{AFX_MSG(CCommtestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSendButton1();
	afx_msg void OnSendButton2();
	afx_msg LONG OnCommunication(UINT, LONG);
	afx_msg LONG OnCTSDetected(UINT, LONG);
	afx_msg void OnClearButton1();
	afx_msg void OnClearButton2();
	afx_msg void OnConfigbutton1();
	afx_msg void OnConfigbutton2();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COMMTESTDLG_H__4FDAC186_34B5_11D1_9481_00805A147202__INCLUDED_)

⌨️ 快捷键说明

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