📄 favsmvview.cpp
字号:
// FavsMVView.cpp : implementation of the CFavsMVView class
//
#include "stdafx.h"
#include "FavsMV.h"
#include "FavsMVDoc.h"
#include "FavsMVView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFavsMVView
IMPLEMENT_DYNCREATE(CFavsMVView, CView)
BEGIN_MESSAGE_MAP(CFavsMVView, CView)
//{{AFX_MSG_MAP(CFavsMVView)
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CFavsMVView construction/destruction
CFavsMVView::CFavsMVView()
{
// TODO: add construction code here
}
CFavsMVView::~CFavsMVView()
{
}
BOOL CFavsMVView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CFavsMVView drawing
void CFavsMVView::OnDraw(CDC* pDC)
{
CFavsMVDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CFavsMVView printing
BOOL CFavsMVView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CFavsMVView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CFavsMVView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CFavsMVView diagnostics
#ifdef _DEBUG
void CFavsMVView::AssertValid() const
{
CView::AssertValid();
}
void CFavsMVView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CFavsMVDoc* CFavsMVView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFavsMVDoc)));
return (CFavsMVDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CFavsMVView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -