returnedit.cpp
来自「vc++6.0开发网络典型应用实例导航 1. 本光盘提供了本书中所有的实例源」· C++ 代码 · 共 48 行
CPP
48 行
// 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 + =
减小字号Ctrl + -
显示快捷键?