📄 dialogcalltag.cpp
字号:
// DialogCallTag.cpp : implementation file
//
#include "stdafx.h"
#include "test.h"
#include "DialogCallTag.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDialogCallTag dialog
CDialogCallTag::CDialogCallTag(CWnd* pParent /*=NULL*/)
: CDialog(CDialogCallTag::IDD, pParent)
{
//{{AFX_DATA_INIT(CDialogCallTag)
m_strTagIDCall = _T("");
m_IDLEN = _T("");
//}}AFX_DATA_INIT
}
void CDialogCallTag::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDialogCallTag)
DDX_Text(pDX, IDC_EDIT_TAGID, m_strTagIDCall);
DDV_MaxChars(pDX, m_strTagIDCall, 16);
DDX_Text(pDX, IDC_STATIC_LENID, m_IDLEN);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDialogCallTag, CDialog)
//{{AFX_MSG_MAP(CDialogCallTag)
ON_EN_CHANGE(IDC_EDIT_TAGID, OnChangeEditTagid)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDialogCallTag message handlers
BOOL CDialogCallTag::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_IDLEN.Format("%d",m_strTagIDCall.GetLength()/2);
UpdateData(false);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CDialogCallTag::OnChangeEditTagid()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
UpdateData(true);
m_IDLEN.Format("%d",m_strTagIDCall.GetLength()/2);
UpdateData(false);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -