editexpand.cpp

来自「mobitex 网络的终端采用的串口通信程序。目前正在使用」· C++ 代码 · 共 42 行

CPP
42
字号
// EditExpand.cpp : implementation file
//

#include "stdafx.h"
#include "mascdriver.h"
#include "EditExpand.h"
#include "MascdriverDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern 	CMascdriverDlg*  pMascDlg;
/////////////////////////////////////////////////////////////////////////////
// CEditExpand

CEditExpand::CEditExpand()
{
}

CEditExpand::~CEditExpand()
{
}


BEGIN_MESSAGE_MAP(CEditExpand, CEdit)
	//{{AFX_MSG_MAP(CEditExpand)
	ON_WM_CHAR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEditExpand message handlers

void CEditExpand::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	CString str;
	str = nChar;
	pMascDlg->m_mscomm.SetOutput (COleVariant(str)); 	
	CEdit::OnChar(nChar, nRepCnt, nFlags);
}

⌨️ 快捷键说明

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