portdialog.cpp

来自「比较经典的串口开发原码」· C++ 代码 · 共 48 行

CPP
48
字号
// PortDialog.cpp : implementation file
//

#include "stdafx.h"
#include "exa06.h"
#include "PortDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CPortDialog dialog


CPortDialog::CPortDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CPortDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CPortDialog)
	m_strData = _T("");
	m_strCtrl = _T("");
	//}}AFX_DATA_INIT
}


void CPortDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CPortDialog)
	DDX_CBString(pDX, IDC_CTRL_COMBO, m_strData);
	DDV_MaxChars(pDX, m_strData, 5);
	DDX_CBString(pDX, IDC_DATA_COMBO, m_strCtrl);
	DDV_MaxChars(pDX, m_strCtrl, 5);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CPortDialog message handlers

⌨️ 快捷键说明

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