📄 markview.cpp
字号:
// markView.cpp : implementation of the CMarkView class
//
#include "stdafx.h"
#include "mark.h"
#include "markDoc.h"
#include "markView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMarkView
IMPLEMENT_DYNCREATE(CMarkView, CFormView)
BEGIN_MESSAGE_MAP(CMarkView, CFormView)
//{{AFX_MSG_MAP(CMarkView)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMarkView construction/destruction
CMarkView::CMarkView()
: CFormView(CMarkView::IDD)
{
//{{AFX_DATA_INIT(CMarkView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// TODO: add construction code here
}
CMarkView::~CMarkView()
{
}
void CMarkView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CMarkView)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
void CMarkView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}
/////////////////////////////////////////////////////////////////////////////
// CMarkView diagnostics
#ifdef _DEBUG
void CMarkView::AssertValid() const
{
CFormView::AssertValid();
}
void CMarkView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CMarkDoc* CMarkView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMarkDoc)));
return (CMarkDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMarkView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -