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

📄 chat.cpp

📁 本程序是模仿QQ聊天程序
💻 CPP
字号:
// Chat.cpp : implementation file
//

#include "stdafx.h"
#include "QTS_QQ.h"
#include "Chat.h"

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

/////////////////////////////////////////////////////////////////////////////
// CChat

CChat::CChat()
{
	m_clrFore=RGB(0,0,255); 
	m_clrBack=RGB(255,255,255); 
	m_brush.CreateSolidBrush(m_clrBack);
}

CChat::~CChat()
{
}


BEGIN_MESSAGE_MAP(CChat, CEdit)
	//{{AFX_MSG_MAP(CChat)
	ON_WM_CTLCOLOR_REFLECT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CChat message handlers

HBRUSH CChat::CtlColor(CDC* pDC, UINT nCtlColor) 
{
	// TODO: Change any attributes of the DC here
	pDC->SetTextColor(m_clrFore);
	pDC->SetBkColor(m_clrBack);	
	
	// TODO: Return a non-NULL brush if the parent's handler should not be called
	return (HBRUSH)m_brush.GetSafeHandle();
}

⌨️ 快捷键说明

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