【VC开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了VC开源代码-filecopyView.cpp的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
// filecopyView.cpp : implementation of the CFilecopyView class
//
#include "stdafx.h"
#include "filecopy.h"
#include "filecopyDoc.h"
#include "filecopyView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFilecopyView
IMPLEMENT_DYNCREATE(CFilecopyView, CView)
BEGIN_MESSAGE_MAP(CFilecopyView, CView)
//{{AFX_MSG_MAP(CFilecopyView)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CFilecopyView construction/destruction
CFilecopyView::CFilecopyView()
{
// TODO: add construction code here
}
CFilecopyView::~CFilecopyView()
{
}
BOOL CFilecopyView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CFilecopyView drawing
void CFilecopyView::OnDraw(CDC* pDC)
{
CFilecopyDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CFilecopyView printing
BOOL CFilecopyView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CFilecopyView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CFilecopyView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CFilecopyView diagnostics
#ifdef _DEBUG
void CFilecopyView::AssertValid() const
{
CView::AssertValid();
}
void CFilecopyView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CFilecopyDoc* CFilecopyView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CFilecopyDoc)));
return (CFilecopyDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CFilecopyView message handlers
上一篇:
filecopyDoc.cpp
下一篇:
白色姜花,略微开了