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