com2set.cpp

来自「自己编的把数控代码用RS232口由计算机传输到数控机床的程序」· C++ 代码 · 共 52 行

CPP
52 行
字号
// Com2Set.cpp : implementation file
//

#include "stdafx.h"
#include "NC.h"
#include "Com2Set.h"

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

/////////////////////////////////////////////////////////////////////////////
// CCom2Set dialog


CCom2Set::CCom2Set(CWnd* pParent /*=NULL*/)
	: CDialog(CCom2Set::IDD, pParent)
{
	//{{AFX_DATA_INIT(CCom2Set)
	m_bit = _T("9600");
	m_jiaoyan = _T("ȱʡ");
	m_shuju = _T("1");
	m_tingzhi = _T("8");
	m_handshake = _T("NONE");
	//}}AFX_DATA_INIT
}


void CCom2Set::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CCom2Set)
	DDX_CBString(pDX, IDC_COMBO1, m_bit);
	DDX_CBString(pDX, IDC_COMBO2, m_jiaoyan);
	DDX_CBString(pDX, IDC_COMBO3, m_tingzhi);
	DDX_CBString(pDX, IDC_COMBO4, m_shuju);
	DDX_CBString(pDX, IDC_COMBO5, m_handshake);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CCom2Set message handlers

⌨️ 快捷键说明

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