?? modeldlg.cpp
字號:
// ModelDlg.cpp : implementation file
//
#include "stdafx.h"
#include "VCStyle.h"
#include "ModelDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "data.h"
/////////////////////////////////////////////////////////////////////////////
// CModelDlg dialog
CModelDlg::CModelDlg(CWnd* pParent /*=NULL*/)
: CDialog(CModelDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CModelDlg)
m_type = 0;
m_addr = 0;
m_name = _T("");
//}}AFX_DATA_INIT
}
CModelDlg::CModelDlg(int type,UINT address)
{
m_type = type;
m_addr = address;
}
void CModelDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CModelDlg)
DDX_CBIndex(pDX, IDC_COMBO_TYPE, m_type);
DDX_Text(pDX, IDC_EDIT_ADDR, m_addr);
DDX_Text(pDX, IDC_EDIT_MDNAME, m_name);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CModelDlg, CDialog)
//{{AFX_MSG_MAP(CModelDlg)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CModelDlg message handlers
UINT CModelDlg::GetSelType()
{
switch(m_type){
case 0://7703
return T_AD_7703;
case 1:
return T_AD_7703_2;
case 2:
return T_AD_7710;
case 3:
return T_QD;
default:
return T_NULL;
}
}
void CModelDlg::SetSel(UINT type)
{
switch(type){
case T_AD_7703:
m_type = 0;
break;
case T_AD_7703_2:
m_type = 1;
break;
case T_AD_7710:
m_type = 2;
break;
case T_QD:
m_type = 3;
break;
default:
m_type = -1;
break;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -