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.
74 lines
1.4 KiB
74 lines
1.4 KiB
// CardIDDlg.cpp : implementation file
|
|
//
|
|
#include "stdafx.h"
|
|
#include "9116SPTg.h"
|
|
#include "9116SPTgDlg.h"
|
|
#include "CardIDDlg.h"
|
|
|
|
// CCardIDDlg dialog
|
|
|
|
IMPLEMENT_DYNAMIC(CCardIDDlg, CDialog)
|
|
|
|
CCardIDDlg::CCardIDDlg(int nCardIdx, CWnd* pParent /*=NULL*/)
|
|
: CDialog(CCardIDDlg::IDD, pParent)
|
|
{
|
|
m_nCardIdx = nCardIdx;
|
|
}
|
|
|
|
CCardIDDlg::~CCardIDDlg()
|
|
{
|
|
}
|
|
|
|
void CCardIDDlg::DoDataExchange(CDataExchange* pDX)
|
|
{
|
|
CDialog::DoDataExchange(pDX);
|
|
DDX_Control(pDX, IDC_COMBO_CARDID, m_cbCardID);
|
|
DDX_Control(pDX, IDC_COMBO_CARDTYPE, m_cbAIMode);
|
|
}
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CCardIDDlg, CDialog)
|
|
// ON_CBN_SELCHANGE(IDC_COMBO_CARDID, &CCardIDDlg::OnCbnSelchangeComboCardid)
|
|
ON_BN_CLICKED(IDOK, &CCardIDDlg::OnBnClickedOk)
|
|
//ON_WM_CTLCOLOR()
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
// CCardIDDlg message handlers
|
|
|
|
|
|
void CCardIDDlg::OnBnClickedOk()
|
|
{
|
|
// TODO: Add your control notification handler code here
|
|
|
|
// UpdateData(TRUE);
|
|
m_nCardIdx = m_cbCardID.GetCurSel();
|
|
m_wAIMode = AI_MODE_DMA + m_cbAIMode.GetCurSel();
|
|
|
|
OnOK();
|
|
}
|
|
|
|
BOOL CCardIDDlg::OnInitDialog()
|
|
{
|
|
CDialog::OnInitDialog();
|
|
|
|
// TODO: Add extra initialization here
|
|
m_cbCardID.SetCurSel( m_nCardIdx );
|
|
|
|
m_cbAIMode.SetCurSel( 0 );
|
|
m_wAIMode = AI_MODE_DMA;
|
|
|
|
return TRUE; // return TRUE unless you set the focus to a control
|
|
// EXCEPTION: OCX Property Pages should return FALSE
|
|
}
|
|
|
|
// the function to get the selected CardID
|
|
int CCardIDDlg::GetCardID(void)
|
|
{
|
|
return m_nCardIdx;
|
|
}
|
|
|
|
U16 CCardIDDlg::GetAIMode(void)
|
|
{
|
|
return m_wAIMode;
|
|
}
|