⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitedit.cpp

📁 实现智能大厦自动报警系统主要是通过串口通信来实现的。计算机对数模转换设备发送到端口的数据进行处理
💻 CPP
字号:
// BitEdit.cpp : implementation file
//

#include "stdafx.h"
#include "yhjk.h"
#include "BitEdit.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CBitEdit

CBitEdit::CBitEdit()
{
}

CBitEdit::~CBitEdit()
{
}


BEGIN_MESSAGE_MAP(CBitEdit, CEdit)
	//{{AFX_MSG_MAP(CBitEdit)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBitEdit message handlers

BOOL CBitEdit::PreTranslateMessage(MSG* pMsg) 
{
	if(pMsg->message==WM_KEYDOWN && (pMsg->wParam!=48 && pMsg->wParam!=49 && pMsg->wParam!=VK_NUMPAD0 && pMsg->wParam!=VK_NUMPAD1 && pMsg->wParam!=8 && pMsg->wParam!=13))
	{
		pMsg->wParam=VK_CONTROL;
	}
	else
		if(pMsg->message==WM_KEYDOWN && pMsg->wParam==13)
			pMsg->wParam=9;
	
	return CEdit::PreTranslateMessage(pMsg);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -