dbformedit.cpp
来自「What I did with this class is to automat」· C++ 代码 · 共 46 行
CPP
46 行
// DbFormEdit.cpp : implementation file
//
#include "stdafx.h"
#include "DerivedDialogTest.h"
#include "DbFormEdit.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDbFormEdit
CDbFormEdit::CDbFormEdit()
{
}
CDbFormEdit::~CDbFormEdit()
{
}
BEGIN_MESSAGE_MAP(CDbFormEdit, CEdit)
//{{AFX_MSG_MAP(CDbFormEdit)
ON_CONTROL_REFLECT(EN_CHANGE, OnChange)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDbFormEdit message handlers
void CDbFormEdit::OnChange()
{
CString szText;
GetWindowText(szText);
if(szText.IsEmpty())
{
szText = "*";
SetWindowText(szText);
SetSel(0,INT_MAX);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?