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

📄 setting.cpp

📁 VC6++ program demo source for communication with PLC to read and write data.
💻 CPP
字号:
// Setting.cpp : implementation file
//

#include "stdafx.h"
#include "LinkPLC.h"
#include "Setting.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSetting dialog


CSetting::CSetting(CWnd* pParent /*=NULL*/)
	: CDialog(CSetting::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetting)
	m_sBaud = _T("");
	m_iAddress = 0;
	m_sBits = _T("");
	m_bBlock = FALSE;
	m_iFstDelay = 0;
	m_sHandshake = _T("");
	m_bMemory = FALSE;
	m_iMemSize = 0;
	m_sPort = _T("");
	m_iSndDelay = 0;
	m_sStop = _T("");
	m_bTape = FALSE;
	m_sBtrCode = _T("");
	m_sParity = _T("");
	//}}AFX_DATA_INIT
}


void CSetting::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetting)
	DDX_CBString(pDX, IDC_BAUD, m_sBaud);
	DDX_Text(pDX, IDC_ADDRESS, m_iAddress);
	DDX_CBString(pDX, IDC_BITS, m_sBits);
	DDX_Check(pDX, IDC_BLOCK, m_bBlock);
	DDX_Text(pDX, IDC_FSTDELAY, m_iFstDelay);
	DDX_CBString(pDX, IDC_HANDS, m_sHandshake);
	DDX_Check(pDX, IDC_MEMORY, m_bMemory);
	DDX_Text(pDX, IDC_MEMSIZE, m_iMemSize);
	DDX_CBString(pDX, IDC_PORT, m_sPort);
	DDX_Text(pDX, IDC_SNDDELAY, m_iSndDelay);
	DDX_CBString(pDX, IDC_STOP, m_sStop);
	DDX_Check(pDX, IDC_TAPE, m_bTape);
	DDX_CBString(pDX, IDC_BTRCODE, m_sBtrCode);
	DDX_CBString(pDX, IDC_PARITY, m_sParity);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CSetting message handlers

⌨️ 快捷键说明

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