📄 agentedit.cpp
字号:
// AgentEdit.cpp : implementation file
//
#include "stdafx.h"
#include "agentedit.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAgentEdit
CAgentEdit::CAgentEdit()
{
}
CAgentEdit::~CAgentEdit()
{
}
BEGIN_MESSAGE_MAP(CAgentEdit, CEdit)
//{{AFX_MSG_MAP(CAgentEdit)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAgentEdit message handlers
void CAgentEdit::OnPaint()
{
CPaintDC dc(this); // device context for painting
}
void CAgentEdit::SetLines ( int nLines, int nFontSize )
{
CRect rect;
GetWindowRect ( &rect );
SetWindowPos( NULL, 0, 0, rect.Width(), nFontSize * nLines, SWP_NOZORDER | SWP_NOMOVE );
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -