configuredlg.cpp

来自「VC 串口收发程序编程」· C++ 代码 · 共 72 行

CPP
72
字号
// ConfigureDlg.cpp : implementation file
//

#include "stdafx.h"
#include "MSCOMM.h"
#include "ConfigureDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CConfigureDlg dialog


CConfigureDlg::CConfigureDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CConfigureDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CConfigureDlg)
	m_COMPort = 0;
	m_DTREnable = FALSE;
	m_InBufferSize = 0;
	m_HandShaking = 0;
	m_InputMode = 0;
	m_NULLDiscard = FALSE;
	m_OutBufferSize = 0;
	m_ParityReplace = _T("");
	m_RThreshold = 0;
	m_RTSEnable = FALSE;
	m_Setting = _T("");
	m_STreshold = 0;
	//}}AFX_DATA_INIT
}


void CConfigureDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CConfigureDlg)
	DDX_Text(pDX, IDC_ComPort, m_COMPort);
	DDX_Text(pDX, IDC_DtrEnable, m_DTREnable);
	DDX_Text(pDX, IDC_InBufferSize, m_InBufferSize);
	DDX_Text(pDX, IDC_HandShaking, m_HandShaking);
	DDX_Text(pDX, IDC_InputMode, m_InputMode);
	DDX_Text(pDX, IDC_NullDiscard, m_NULLDiscard);
	DDX_Text(pDX, IDC_OutBuf, m_OutBufferSize);
	DDX_Text(pDX, IDC_ParityReplace, m_ParityReplace);
	DDX_Text(pDX, IDC_RThreshold, m_RThreshold);
	DDX_Text(pDX, IDC_RtsEnable, m_RTSEnable);
	DDX_Text(pDX, IDC_Settings, m_Setting);
	DDX_Text(pDX, IDC_STreshold, m_STreshold);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CConfigureDlg, CDialog)
	//{{AFX_MSG_MAP(CConfigureDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CConfigureDlg message handlers

void CConfigureDlg::OnOK() 
{
	// TODO: Add extra validation here
	
	CDialog::OnOK();
}

⌨️ 快捷键说明

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