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

📄 samparadialog.cpp

📁 比较经典的串口开发原码
💻 CPP
字号:
// SamParaDialog.cpp : implementation file
//

#include "stdafx.h"
#include "exa06.h"
#include "SamParaDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSamParaDialog dialog


CSamParaDialog::CSamParaDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CSamParaDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSamParaDialog)

	m_strDot01 = _T("");
	m_strDot02 = _T("");
	m_strDot03 = _T("");
	m_strDot04 = _T("");
	m_strDot05 = _T("");
	m_strDot06 = _T("");
	m_strDot07 = _T("");
	m_strDot08 = _T("");
	m_strDot09 = _T("");
	m_strDot10 = _T("");
	m_strDot11 = _T("");
	m_strDot12 = _T("");
	m_strDot13 = _T("");
	m_strDot14 = _T("");
	m_strDot15 = _T("");
	m_strDot16 = _T("");
	m_strDot17 = _T("");
	m_strDot18 = _T("");
	m_strDot19 = _T("");
	m_strDot20 = _T("");

	m_nInit01 = 0.0f;
	m_nInit02 = 0.0f;
	m_nInit03 = 0.0f;
	m_nInit04 = 0.0f;
	m_nInit05 = 0.0f;
	m_nInit06 = 0.0f;
	m_nInit07 = 0.0f;
	m_nInit08 = 0.0f;
	m_nInit09 = 0.0f;
	m_nInit10 = 0.0f;
	m_nInit11 = 0.0f;
	m_nInit12 = 0.0f;
	m_nInit13 = 0.0f;
	m_nInit14 = 0.0f;
	m_nInit15 = 0.0f;
	m_nInit16 = 0.0f;
	m_nInit17 = 0.0f;
	m_nInit18 = 0.0f;
	m_nInit19 = 0.0f;
	m_nInit20 = 0.0f;
	
	m_nA01 = 0.0f;
	m_nA02 = 0.0f;
	m_nA03 = 0.0f;
	m_nA04 = 0.0f;
	m_nA05 = 0.0f;
	m_nA06 = 0.0f;
	m_nA07 = 0.0f;
	m_nA08 = 0.0f;
	m_nA09 = 0.0f;
	m_nA10 = 0.0f;
	m_nA11 = 0.0f;
	m_nA12 = 0.0f;
	m_nA13 = 0.0f;
	m_nA14 = 0.0f;
	m_nA15 = 0.0f;
	m_nA16 = 0.0f;
	m_nA17 = 0.0f;
	m_nA18 = 0.0f;
	m_nA19 = 0.0f;
	m_nA20 = 0.0f;

	m_nT01 = 0.0f;
	m_nT02 = 0.0f;
	m_nT03 = 0.0f;
	m_nT04 = 0.0f;
	m_nT05 = 0.0f;
	m_nT06 = 0.0f;
	m_nT07 = 0.0f;
	m_nT08 = 0.0f;
	m_nT09 = 0.0f;
	m_nT10 = 0.0f;
	m_nT11 = 0.0f;
	m_nT12 = 0.0f;
	m_nT13 = 0.0f;
	m_nT14 = 0.0f;
	m_nT15 = 0.0f;
	m_nT16 = 0.0f;
	m_nT17 = 0.0f;
	m_nT18 = 0.0f;
	m_nT19 = 0.0f;
	m_nT20 = 0.0f;
	//}}AFX_DATA_INIT
}


void CSamParaDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSamParaDialog)
	
	DDX_Text(pDX, IDC_DOT01_EDIT, m_strDot01);
	DDX_Text(pDX, IDC_DOT02_EDIT, m_strDot02);
	DDX_Text(pDX, IDC_DOT03_EDIT, m_strDot03);
	DDX_Text(pDX, IDC_DOT04_EDIT, m_strDot04);
	DDX_Text(pDX, IDC_DOT05_EDIT, m_strDot05);
	DDX_Text(pDX, IDC_DOT06_EDIT, m_strDot06);
	DDX_Text(pDX, IDC_DOT07_EDIT, m_strDot07);
	DDX_Text(pDX, IDC_DOT08_EDIT, m_strDot08);
	DDX_Text(pDX, IDC_DOT09_EDIT, m_strDot09);
	DDX_Text(pDX, IDC_DOT10_EDIT, m_strDot10);
	DDX_Text(pDX, IDC_DOT11_EDIT, m_strDot11);
	DDX_Text(pDX, IDC_DOT12_EDIT, m_strDot12);
	DDX_Text(pDX, IDC_DOT13_EDIT, m_strDot13);
	DDX_Text(pDX, IDC_DOT14_EDIT, m_strDot14);
	DDX_Text(pDX, IDC_DOT15_EDIT, m_strDot15);
	DDX_Text(pDX, IDC_DOT16_EDIT, m_strDot16);
	DDX_Text(pDX, IDC_DOT17_EDIT, m_strDot17);
	DDX_Text(pDX, IDC_DOT18_EDIT, m_strDot18);
	DDX_Text(pDX, IDC_DOT19_EDIT, m_strDot19);
	DDX_Text(pDX, IDC_DOT20_EDIT, m_strDot20);

	DDX_Text(pDX, IDC_A01_EDIT, m_nA01);
	DDX_Text(pDX, IDC_A02_EDIT, m_nA02);
	DDX_Text(pDX, IDC_A03_EDIT, m_nA03);
	DDX_Text(pDX, IDC_A04_EDIT, m_nA04);
	DDX_Text(pDX, IDC_A05_EDIT, m_nA05);
	DDX_Text(pDX, IDC_A06_EDIT, m_nA06);
	DDX_Text(pDX, IDC_A07_EDIT, m_nA07);
	DDX_Text(pDX, IDC_A08_EDIT, m_nA08);
	DDX_Text(pDX, IDC_A09_EDIT, m_nA09);
	DDX_Text(pDX, IDC_A10_EDIT, m_nA10);
	DDX_Text(pDX, IDC_A11_EDIT, m_nA11);
	DDX_Text(pDX, IDC_A12_EDIT, m_nA12);
	DDX_Text(pDX, IDC_A13_EDIT, m_nA13);
	DDX_Text(pDX, IDC_A14_EDIT, m_nA14);
	DDX_Text(pDX, IDC_A15_EDIT, m_nA15);
	DDX_Text(pDX, IDC_A16_EDIT, m_nA16);
	DDX_Text(pDX, IDC_A17_EDIT, m_nA17);
	DDX_Text(pDX, IDC_A18_EDIT, m_nA18);
	DDX_Text(pDX, IDC_A19_EDIT, m_nA19);
	DDX_Text(pDX, IDC_A20_EDIT, m_nA20);

	DDX_Text(pDX, IDC_T01_EDIT, m_nT01);
	DDX_Text(pDX, IDC_T02_EDIT, m_nT02);
	DDX_Text(pDX, IDC_T03_EDIT, m_nT03);
	DDX_Text(pDX, IDC_T04_EDIT, m_nT04);
	DDX_Text(pDX, IDC_T05_EDIT, m_nT05);
	DDX_Text(pDX, IDC_T06_EDIT, m_nT06);
	DDX_Text(pDX, IDC_T07_EDIT, m_nT07);
	DDX_Text(pDX, IDC_T08_EDIT, m_nT08);
	DDX_Text(pDX, IDC_T09_EDIT, m_nT09);
	DDX_Text(pDX, IDC_T10_EDIT, m_nT10);
	DDX_Text(pDX, IDC_T11_EDIT, m_nT11);
	DDX_Text(pDX, IDC_T12_EDIT, m_nT12);
	DDX_Text(pDX, IDC_T13_EDIT, m_nT13);
	DDX_Text(pDX, IDC_T14_EDIT, m_nT14);
	DDX_Text(pDX, IDC_T15_EDIT, m_nT15);
	DDX_Text(pDX, IDC_T16_EDIT, m_nT16);
	DDX_Text(pDX, IDC_T17_EDIT, m_nT17);
	DDX_Text(pDX, IDC_T18_EDIT, m_nT18);
	DDX_Text(pDX, IDC_T19_EDIT, m_nT19);
	DDX_Text(pDX, IDC_T20_EDIT, m_nT20);

	DDX_Text(pDX, IDC_INIT01_EDIT, m_nInit01);
	DDX_Text(pDX, IDC_INIT02_EDIT, m_nInit02);
	DDX_Text(pDX, IDC_INIT03_EDIT, m_nInit03);
	DDX_Text(pDX, IDC_INIT04_EDIT, m_nInit04);
	DDX_Text(pDX, IDC_INIT05_EDIT, m_nInit05);
	DDX_Text(pDX, IDC_INIT06_EDIT, m_nInit06);
	DDX_Text(pDX, IDC_INIT07_EDIT, m_nInit07);
	DDX_Text(pDX, IDC_INIT08_EDIT, m_nInit08);
	DDX_Text(pDX, IDC_INIT09_EDIT, m_nInit09);
	DDX_Text(pDX, IDC_INIT10_EDIT, m_nInit10);
	DDX_Text(pDX, IDC_INIT11_EDIT, m_nInit11);
	DDX_Text(pDX, IDC_INIT12_EDIT, m_nInit12);
	DDX_Text(pDX, IDC_INIT13_EDIT, m_nInit13);
	DDX_Text(pDX, IDC_INIT14_EDIT, m_nInit14);
	DDX_Text(pDX, IDC_INIT15_EDIT, m_nInit15);
	DDX_Text(pDX, IDC_INIT16_EDIT, m_nInit16);
	DDX_Text(pDX, IDC_INIT17_EDIT, m_nInit17);
	DDX_Text(pDX, IDC_INIT18_EDIT, m_nInit18);
	DDX_Text(pDX, IDC_INIT19_EDIT, m_nInit19);
	DDX_Text(pDX, IDC_INIT20_EDIT, m_nInit20);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CSamParaDialog message handlers

⌨️ 快捷键说明

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