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

📄 baue.cpp

📁 自己做的EVC下串口调试软件
💻 CPP
字号:
// Baue.cpp : implementation file
//

#include "stdafx.h"
#include "Chuankou.h"
#include "Baue.h"

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

/////////////////////////////////////////////////////////////////////////////
// CBaue dialog


CBaue::CBaue(CWnd* pParent /*=NULL*/)
	: CDialog(CBaue::IDD, pParent)
{
	//{{AFX_DATA_INIT(CBaue)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CBaue::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CBaue)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CBaue, CDialog)
	//{{AFX_MSG_MAP(CBaue)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBaue message handlers

void CBaue::OnButton1() 
{
	CComboBox *pCmbBaud = NULL;
	pCmbBaud = (CComboBox*)GetDlgItem(IDC_CMBBAUD);
	ASSERT(pCmbBaud != NULL);
	//得到波特率
	CString tmpBaud;
	pCmbBaud->GetWindowText(tmpBaud);
	m_baud = _wtoi(tmpBaud);
	CDialog::OnOK();
}

⌨️ 快捷键说明

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