You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
63 lines
1.3 KiB
// SetupDlg.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "7348Int.h"
|
|
#include "SetupDlg.h"
|
|
|
|
|
|
// CSetupDlg dialog
|
|
|
|
IMPLEMENT_DYNAMIC(CSetupDlg, CDialog)
|
|
|
|
CSetupDlg::CSetupDlg(CWnd* pParent /*=NULL*/)
|
|
: CDialog(CSetupDlg::IDD, pParent)
|
|
, m_nSampleCount(40)
|
|
, m_nSampleRate(500)
|
|
{
|
|
|
|
}
|
|
|
|
CSetupDlg::~CSetupDlg()
|
|
{
|
|
}
|
|
|
|
void CSetupDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
DDX_Control(pDX, IDC_COMBO_CARDNO, m_cbCardID);
|
|
DDX_Text(pDX, IDC_EDIT_COUNT, m_nSampleCount);
|
|
DDX_Text(pDX, IDC_EDIT_RATE, m_nSampleRate);
|
|
DDV_MinMaxLong(pDX, m_nSampleCount, 0, 32768);
|
|
DDV_MinMaxLong(pDX, m_nSampleRate, 0, 15000);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CSetupDlg, CDialog)
|
|
ON_CBN_SELCHANGE(IDC_COMBO_CARDNO, &CSetupDlg::OnCardNoSelchange)
|
|
// ON_EN_CHANGE(IDC_EDIT_COUNT, &CSetupDlg::OnEnChangeEditCount)
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CSetupDlg message handlers
|
|
|
|
BOOL CSetupDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
// TODO: Add extra initialization here
|
|
m_cbCardID.SetCurSel(0);
|
|
m_nCardIdx = 0;
|
|
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
void CSetupDlg::OnCardNoSelchange()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
m_nCardIdx = m_cbCardID.GetCurSel();
|
|
|
|
}
|
|
|
|
|