📄 linerecset.cpp
字号:
// LineRecSet.cpp : implementation file
//
#include "stdafx.h"
#include "phonerec.h"
#include "LineRecSet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CLineRecSet dialog
CLineRecSet::CLineRecSet( int lineID, CString strPhone, CString isEnableRec, CString isPressMode)
: CDialog(CLineRecSet::IDD, NULL)
{
//{{AFX_DATA_INIT(CLineRecSet)
m_strLineID = _T("");
m_strPhone = _T("");
m_iReMode = -1;
m_iReEable = -1;
//}}AFX_DATA_INIT
m_strLineID.Format("%d",lineID );
m_strPhone = strPhone;
if( !isEnableRec.Compare("启动"))
{
m_iReEable = 0;
}
else
{
m_iReEable = 1;
}
if( !isPressMode.Compare("压控"))
{
m_iReMode = 0;
}
else
{
m_iReMode = 1;
}
}
void CLineRecSet::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CLineRecSet)
DDX_Text(pDX, IDC_EDIT_LINEID, m_strLineID);
DDX_Text(pDX, IDC_EDIT_PHONE, m_strPhone);
DDX_Radio(pDX, IDC_RADIO_PRESS, m_iReMode);
DDX_Radio(pDX, IDC_RADIO_START, m_iReEable);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CLineRecSet, CDialog)
//{{AFX_MSG_MAP(CLineRecSet)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CLineRecSet message handlers
BOOL CLineRecSet::OnInitDialog()
{
CDialog::OnInitDialog();
UpdateData( FALSE );
return TRUE;
}
void CLineRecSet::OnOK()
{
UpdateData();
CDialog::OnOK();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -