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

📄 config.cpp

📁 运用通信API编写串口通信。 功能:1)通过串口进行数据的收发并在接收端显示收到的数据 2)打开串口
💻 CPP
字号:
// config.cpp : implementation file
//

#include "stdafx.h"
#include "com.h"
#include "config.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// Cconfig dialog


Cconfig::Cconfig(CWnd* pParent /*=NULL*/)
	: CDialog(Cconfig::IDD, pParent)
{
	//{{AFX_DATA_INIT(Cconfig)
	m_intBaud = 0;		
	m_intData = 3;		
	m_intPort = 0;			
	m_intParity = 0;		
	m_intStop = 0;	
	//}}AFX_DATA_INIT
}


void Cconfig::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Cconfig)
	DDX_CBIndex(pDX, IDC_COMBO_B, m_intBaud);
	DDX_CBIndex(pDX, IDC_COMBO_P, m_intPort);
	DDX_CBIndex(pDX, IDC_COMBO_Pa, m_intParity);
	DDX_CBIndex(pDX, IDC_COMBO_S, m_intStop);
	DDX_CBIndex(pDX, IDC_COMBO_D, m_intData);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Cconfig, CDialog)
	//{{AFX_MSG_MAP(Cconfig)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cconfig message handlers

⌨️ 快捷键说明

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