【VC开源代码栏目提醒】:网学会员为需要VC开源代码的朋友们搜集整理了CCHange_1View.cpp相关资料,希望对各位网友有所帮助!
// CCHange_1View.cpp : implementation of the CCCHange_1View class
//
#include "stdafx.h"
#include "CCHange_1.h"
#include "CCHange_1Doc.h"
#include "CCHange_1View.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCCHange_1View
IMPLEMENT_DYNCREATE(CCCHange_1View, CView)
BEGIN_MESSAGE_MAP(CCCHange_1View, CView)
//{{AFX_MSG_MAP(CCCHange_1View)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCCHange_1View construction/destruction
CCCHange_1View::CCCHange_1View()
{
// TODO: add construction code here
}
CCCHange_1View::~CCCHange_1View()
{
}
BOOL CCCHange_1View::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_1View drawing
void CCCHange_1View::OnDraw(CDC* pDC)
{
CCCHange_1Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_1View printing
BOOL CCCHange_1View::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CCCHange_1View::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CCCHange_1View::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
/////////////////////////////////////////////////////////////////////////////
// CCCHange_1View diagnostics
#ifdef _DEBUG
void CCCHange_1View::AssertValid() const
{
CView::AssertValid();
}
void CCCHange_1View::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CCCHange_1Doc* CCCHange_1View::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CCCHange_1Doc)));
return (CCCHange_1Doc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CCCHange_1View message handlers