📄 chatwnd.cpp
字号:
// ChatWnd.cpp: implementation of the CChatWnd class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MirX.h"
#include "ChatWnd.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
BEGIN_MESSAGE_MAP(CChatWnd,CSizingControlBarCF)
//{{AFX_MSG_MAP(CMyBar)
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CChatWnd::CChatWnd()
{
m_Font.CreatePointFont(9*10,"宋体");
}
CChatWnd::~CChatWnd()
{
}
int CChatWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
m_szHorz.cy=150;
m_szVert.cy=150;
if (CSizingControlBarCF::OnCreate(lpCreateStruct) == -1)
return -1;
SetSCBStyle(GetSCBStyle()|/*SCBS_SHOWEDGES|*/SCBS_SIZECHILD);
if(!m_TabCtrl.Create(TCS_FOCUSNEVER|TCS_BUTTONS|TCS_FLATBUTTONS|WS_CHILD|WS_VISIBLE|TCS_SINGLELINE,
CRect(0,0,0,0),this,0))
return -1;
m_TabCtrl.SetFont(&m_Font);
m_TabCtrl.AddPage("聊天",&m_ChatDialog,IDD_CHATDIALOG);
m_TabCtrl.AddPage("系统",&m_SysLogDlg,IDD_SYSLOGDLG);
return 0;
}
void CChatWnd::AddLog(LPCTSTR log)
{
m_SysLogDlg.AddLog(log);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -