merch05_28view.cpp
来自「商品信息管理」· C++ 代码 · 共 105 行
CPP
105 行
// Merch05_28View.cpp : implementation of the CMerch05_28View class
//
#include "stdafx.h"
#include "Merch05_28.h"
#include "Merch05_28Doc.h"
#include "Merch05_28View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMerch05_28View
IMPLEMENT_DYNCREATE(CMerch05_28View, CView)
BEGIN_MESSAGE_MAP(CMerch05_28View, CView)
//{{AFX_MSG_MAP(CMerch05_28View)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}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()
/////////////////////////////////////////////////////////////////////////////
// CMerch05_28View construction/destruction
CMerch05_28View::CMerch05_28View()
{
// TODO: add construction code here
}
CMerch05_28View::~CMerch05_28View()
{
}
BOOL CMerch05_28View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CMerch05_28View drawing
void CMerch05_28View::OnDraw(CDC* pDC)
{
CMerch05_28Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CMerch05_28View printing
BOOL CMerch05_28View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CMerch05_28View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CMerch05_28View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CMerch05_28View diagnostics
#ifdef _DEBUG
void CMerch05_28View::AssertValid() const
{
CView::AssertValid();
}
void CMerch05_28View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CMerch05_28Doc* CMerch05_28View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMerch05_28Doc)));
return (CMerch05_28Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMerch05_28View message handlers
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?