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

📄 setgb.cpp

📁 vc 485串口通讯测试程序 vc-commtest
💻 CPP
字号:
// SetGB.cpp : implementation file
//

#include "stdafx.h"
#include "CommTest.h"
#include "SetGB.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSetGB dialog


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


void CSetGB::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetGB)
	DDX_Control(pDX, IDC_COMBO_METERCLASS, m_meterclass);
	DDX_Control(pDX, IDC_EDIT_ADDRESS, m_addr);
	DDX_Text(pDX, IDC_EDIT_ADDRESS, m_address);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetGB, CDialog)
	//{{AFX_MSG_MAP(CSetGB)
	ON_BN_CLICKED(IDC_BUTTON_OK, OnButtonOk)
	ON_BN_CLICKED(IDC_BUTTON_CANCEL, OnButtonCancel)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetGB message handlers

void CSetGB::OnButtonOk() 
{
	// TODO: Add your control notification handler code here
	UpdateData(TRUE);
	MeterClass = m_meterclass.GetCurSel();
	OnOK();
}

void CSetGB::OnButtonCancel() 
{
	// TODO: Add your control notification handler code here
	UpdateData(FALSE);
	OnCancel();
}

⌨️ 快捷键说明

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