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

📄 dialogedit.cpp

📁 一个串口通信的例子
💻 CPP
字号:
// DialogEdit.cpp : implementation file
//

#include "stdafx.h"
#include "SCommTest.h"
#include "DialogEdit.h"


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

/////////////////////////////////////////////////////////////////////////////
// CDialogEdit

CDialogEdit::CDialogEdit()
{
}

CDialogEdit::~CDialogEdit()
{
}


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

/////////////////////////////////////////////////////////////////////////////
// CDialogEdit message handlers

void CDialogEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	// TODO: Add your message handler code here and/or call default
	if(nChar==VK_RETURN)
	{
/*
		CString m_strTXData;
		GetWindowText(m_strTXData);
		m_strTXData += "\r\n";
		SetWindowText(m_strTXData);
*/
	}
	CEdit::OnChar(nChar, nRepCnt, nFlags);
}




⌨️ 快捷键说明

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