?? myeditview.cpp
字號(hào):
// 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);//將滾動(dòng)條滾動(dòng)到最下
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -