chatbar.cpp
来自「传圣(测试版)说明 本软件适用于装有IP/TCP协议的电脑。 主要功能:」· C++ 代码 · 共 47 行
CPP
47 行
// chatbar.cpp : implementation file
//
//*************************************************************
/********************************************************/
#include "stdafx.h"
#include "client1.h"
#include "chatbar.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// chatbar
chatbar::chatbar()
{
}
chatbar::~chatbar()
{
}
BEGIN_MESSAGE_MAP(chatbar, CDialogBar)
//{{AFX_MSG_MAP(chatbar)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BOOL chatbar::PreTranslateMessage(MSG* pMsg)
{
if (pMsg->message==WM_KEYDOWN && pMsg->wParam==VK_RETURN)
if(GetFocus()->GetDlgCtrlID()==IDC_SEND ||GetFocus()->GetDlgCtrlID()==IDC_EDIT1)
{
AfxGetMainWnd()->SendMessageToDescendants(WM_KSEND);
// AfxMessageBox("down");
return TRUE;
}
return CDialogBar::PreTranslateMessage(pMsg);
}
/////////////////////////////////////////////////////////////////////////////
// chatbar message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?