📄 fourmodel.cpp
字号:
// FourModel.cpp : implementation file
//
#include "stdafx.h"
#include "mini_Pascal.h"
#include "FourModel.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFourModel
IMPLEMENT_DYNCREATE(CFourModel, CEditView)
CFourModel::CFourModel()
{
}
CFourModel::~CFourModel()
{
}
BEGIN_MESSAGE_MAP(CFourModel, CEditView)
//{{AFX_MSG_MAP(CFourModel)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFourModel drawing
void CFourModel::OnDraw(CDC* pDC)
{
CDocument* pDoc = GetDocument();
// TODO: add draw code here
}
/////////////////////////////////////////////////////////////////////////////
// CFourModel diagnostics
#ifdef _DEBUG
void CFourModel::AssertValid() const
{
CEditView::AssertValid();
}
void CFourModel::Dump(CDumpContext& dc) const
{
CEditView::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CFourModel message handlers
void CFourModel::AddMsg(CString str)
{
CEdit& edit = this->GetEditCtrl();
edit.SetSel(-1, -1);
edit.ReplaceSel("\r\n" + str);
}
void CFourModel::Clear()
{
CEdit& edit = this->GetEditCtrl();
edit.SetSel(0, -1);
edit.Clear();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -