📄 mysave~2.cpp
字号:
// MySaveView.cpp : implementation of the CMySaveView class
//
#include "stdafx.h"
#include "MySave.h"
#include "MySaveDoc.h"
#include "MySaveView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMySaveView
IMPLEMENT_DYNCREATE(CMySaveView, CView)
BEGIN_MESSAGE_MAP(CMySaveView, CView)
//{{AFX_MSG_MAP(CMySaveView)
ON_WM_LBUTTONDBLCLK()
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CMySaveView construction/destruction
CMySaveView::CMySaveView()
{
// TODO: add construction code here
}
CMySaveView::~CMySaveView()
{
}
BOOL CMySaveView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMySaveView drawing
void CMySaveView::OnDraw(CDC* pDC)
{
CMySaveDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMySaveView printing
BOOL CMySaveView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CMySaveView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CMySaveView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CMySaveView diagnostics
#ifdef _DEBUG
void CMySaveView::AssertValid() const
{
CView::AssertValid();
}
void CMySaveView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMySaveDoc* CMySaveView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMySaveDoc)));
return (CMySaveDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMySaveView message handlers
void CMySaveView::OnLButtonDblClk(UINT nFlags, CPoint point)
{
CMySaveDoc*pDoc=GetDocument();
ASSERT_VALID(pDoc);
pDoc->dlg.DoModal();
// TODO: Add your message handler code here and/or call default
CView::OnLButtonDblClk(nFlags, point);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -