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

📄 chatbar.cpp

📁 传圣(测试版)说明 本软件适用于装有IP/TCP协议的电脑。 主要功能:电脑间传送大型文件(如电影等)。 主要特点: 1.采用了多线程技术,速度明显高于同类软件。 2.支持多文件同
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -