【VC开源代码栏目提醒】:网学会员VC开源代码为您提供CSDI_4View.cpp参考,解决您在CSDI_4View.cpp学习中工作中的难题,参考学习。
// CSDI_4View.cpp : implementation of the CCSDI_4View class
//
#include "stdafx.h"
#include "CSDI_4.h"
#include "CSDI_4Doc.h"
#include "CSDI_4View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCSDI_4View
IMPLEMENT_DYNCREATE(CCSDI_4View, CView)
BEGIN_MESSAGE_MAP(CCSDI_4View, CView)
//{{AFX_MSG_MAP(CCSDI_4View)
// 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_4View construction/destruction
CCSDI_4View::CCSDI_4View()
{
// TODO: add construction code here
}
CCSDI_4View::~CCSDI_4View()
{
}
BOOL CCSDI_4View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_4View drawing
void CCSDI_4View::OnDraw(CDC* pDC)
{
CCSDI_4Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_4View printing
BOOL CCSDI_4View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCSDI_4View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCSDI_4View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCSDI_4View diagnostics
#ifdef _DEBUG
void CCSDI_4View::AssertValid() const
{
CView::AssertValid();
}
void CCSDI_4View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCSDI_4Doc* CCSDI_4View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCSDI_4Doc)));
return (CCSDI_4Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCSDI_4View message handlers
上一篇:
BUTTON.FRM
下一篇:
村落共同体的核心架构研究