setings.cpp

来自「是本人编写的串行通信的程序」· C++ 代码 · 共 54 行

CPP
54
字号
// Setings.cpp : implementation file
//

#include "stdafx.h"
#include "inf of com.h"
#include "Setings.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSetings dialog


CSetings::CSetings(CWnd* pParent /*=NULL*/)
	: CDialog(CSetings::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetings)
	m_Rate = _T("");
	//}}AFX_DATA_INIT
}


void CSetings::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetings)
	DDX_CBString(pDX, IDC_COMBO1, m_Rate);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CSetings message handlers

BOOL CSetings::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_Rate="9600";

	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 + =
减小字号Ctrl + -
显示快捷键?