config.cpp

来自「运用通信API编写串口通信。 功能:1)通过串口进行数据的收发并在接收端显示收」· C++ 代码 · 共 52 行

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