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

📄 setupdlg.cpp

📁 Terminal 终端仿真程序
💻 CPP
字号:
// SetupDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Terminal.h"
#include "SetupDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSetupDlg dialog


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

	//{{AFX_DATA_INIT(CSetupDlg)
	m_sBaud = _T("");
	m_sDataBits = _T("");
	m_bEcho = FALSE;
	m_bNewLine = FALSE;
	m_sPort = _T("");
	m_nParity = -1;
	m_nStopBits = -1;
	m_nFlowCtrl = -1;
	//}}AFX_DATA_INIT
}


void CSetupDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetupDlg)
	DDX_CBString(pDX, IDC_BAND, m_sBaud);
	DDX_CBString(pDX, IDC_DATABITS, m_sDataBits);
	DDX_Check(pDX, IDC_ECHO, m_bEcho);
	DDX_Check(pDX, IDC_NEWLINE, m_bNewLine);
	DDX_CBString(pDX, IDC_PORT, m_sPort);
	DDX_CBIndex(pDX, IDC_PARITY, m_nParity);
	DDX_CBIndex(pDX, IDC_STOPBITS, m_nStopBits);
	DDX_Radio(pDX, IDC_RADIO1, m_nFlowCtrl);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CSetupDlg message handlers

BOOL CSetupDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	GetDlgItem(IDC_PORT)->EnableWindow(!m_bConnected);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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