1 Star 1 Fork 2

今夜无眠/GNSS_Viewer_V2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Config1ppsPulseWidthDlg.cpp 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
asion0 提交于 2017-05-24 16:41 . Remove some chinese words
// CConfig1ppsPulseWidthDlg.cpp
//
#include "stdafx.h"
#include "Resource.h"
#include "Config1ppsPulseWidthDlg.h"
// CConfig1ppsPulseWidthDlg
IMPLEMENT_DYNAMIC(CConfig1ppsPulseWidthDlg, CDialog)
CConfig1ppsPulseWidthDlg::CConfig1ppsPulseWidthDlg(CWnd* pParent /*=NULL*/)
: CDialog(IDD_CONFIG_1PPS_PULSE_WIDTH, pParent)
{
m_nPulseWidth = 0;
m_nAttribute = 0;
}
CConfig1ppsPulseWidthDlg::~CConfig1ppsPulseWidthDlg()
{
}
void CConfig1ppsPulseWidthDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CConfig1ppsPulseWidthDlg, CDialog)
ON_BN_CLICKED(IDOK, &CConfig1ppsPulseWidthDlg::OnBnClickedOk)
END_MESSAGE_MAP()
// CConfig1ppsPulseWidthDlg
void CConfig1ppsPulseWidthDlg::OnBnClickedOk()
{
CString txt;
GetDlgItem(IDC_PULSE_WIDTH)->GetWindowText(txt);
m_nPulseWidth = atoi(txt);
if(m_nPulseWidth<1 || m_nPulseWidth>100000)
{
AfxMessageBox("Number of Pulse Width must be between 1 and 100000.");
return;
}
m_nAttribute = ((CComboBox*)GetDlgItem(IDC_BINARY_ATTRI))->GetCurSel();;
OnOK();
}
BOOL CConfig1ppsPulseWidthDlg::OnInitDialog()
{
CDialog::OnInitDialog();
GetDlgItem(IDC_PULSE_WIDTH)->SetWindowText("1");
((CComboBox*)GetDlgItem(IDC_BINARY_ATTRI))->SetCurSel(0);
return TRUE; // return TRUE unless you set the focus to a control
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/null_130_5865/GNSS_Viewer_V2.git
[email protected]:null_130_5865/GNSS_Viewer_V2.git
null_130_5865
GNSS_Viewer_V2
GNSS_Viewer_V2
master

搜索帮助