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

📄 settingdialog.cpp

📁 gps信号测试程序
💻 CPP
字号:
// SettingDialog.cpp : implementation file
//

#include "stdafx.h"
#include "GPSGuider1V0.h"
#include "SettingDialog.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSettingDialog dialog


CSettingDialog::CSettingDialog(int ConfigOnOpen,CString ComboPortShow,int PortIndex,
		CString ComboRateShow,int RateIndex,CWnd* pParent /*=NULL*/)
					: CDialog(CSettingDialog::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSettingDialog)
	m_ConfigOnOpen = ConfigOnOpen;
	m_ComboPortShow = ComboPortShow;
	m_PortIndex = PortIndex;
	m_ComboRateShow = ComboRateShow;
	m_RateIndex = RateIndex;
	//}}AFX_DATA_INIT
}


void CSettingDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSettingDialog)
	DDX_Control(pDX, IDC_CHECK, m_CCheckShow);
	DDX_Control(pDX, IDC_COMBORATE, m_CComboRate);
	DDX_Control(pDX, IDC_COMBOPORT, m_CComboPort);
	DDX_CBString(pDX, IDC_COMBOPORT, m_ComboPortShow);
	DDX_CBString(pDX, IDC_COMBORATE, m_ComboRateShow);
	DDX_Check(pDX, IDC_CHECK, m_ConfigOnOpen);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSettingDialog, CDialog)
	//{{AFX_MSG_MAP(CSettingDialog)
	ON_BN_CLICKED(IDC_BUTTON, OnButton)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSettingDialog message handlers

void CSettingDialog::OnButton() 
{
	// TODO: Add your control notification handler code here
	m_ConfigOnOpen=m_CCheckShow.GetCheck();
	m_PortIndex=m_CComboPort.GetCurSel();
	m_RateIndex=m_CComboRate.GetCurSel();
	EndDialog(IDOK);				
}

⌨️ 快捷键说明

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