📄 myeditview.cpp
字号:
// MyEditView.cpp : implementation file
//
#include "stdafx.h"
#include "GpsNav.h"
#include "MyEditView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMyEditView
IMPLEMENT_DYNCREATE(CMyEditView, CEditView)
CMyEditView::CMyEditView()
{
m_Font.CreateFont(20, 8,0,0,0,0,0,0,0,0,0,0,0, "Courier New");
}
CMyEditView::~CMyEditView()
{
}
BEGIN_MESSAGE_MAP(CMyEditView, CEditView)
//{{AFX_MSG_MAP(CMyEditView)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMyEditView drawing
void CMyEditView::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// CMyEditView diagnostics
#ifdef _DEBUG
void CMyEditView::AssertValid() const
{
CEditView::AssertValid();
}
void CMyEditView::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMyEditView message handlers
void CMyEditView::OnInitialUpdate()
{
CEditView::OnInitialUpdate();
SetFont(&m_Font);
// TODO: Add your specialized code here and/or call the base class
}
void CMyEditView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint)
{
// TODO: Add your specialized code here and/or call the base class
//pDoc->UpdateAllViews(this, 0L, m_pStrokeCur);
this->SendMessage(WM_VSCROLL,SB_BOTTOM,0);//将滚动条滚动到最下
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -