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

📄 returnedit.cpp

📁 该程序是类似于MSN的即使通信工具
💻 CPP
字号:
// ReturnEdit.cpp : implementation file
//

//there probably are more simple ways of achieving what this class does but HELL it is late

#include "stdafx.h"
#include "Netmsg.h"
#include "ReturnEdit.h"
#include "NetmsgView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CReturnEdit

CReturnEdit::CReturnEdit()
{
}

CReturnEdit::~CReturnEdit()
{
}


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

/////////////////////////////////////////////////////////////////////////////
// CReturnEdit message handlers

void CReturnEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags) 
{
	if (nChar == 13)
	{
		CNetmsgView *View = (CNetmsgView *)GetParent();
		View->OnMessageOK();
	}
	else
	CEdit::OnChar(nChar, nRepCnt, nFlags);
}

⌨️ 快捷键说明

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