- // DevDemoView.cpp : implementation of the CDevDemoView class
- //
- #include "stdafx.h"
- #include "DevDemo.h"
- #include "DevDemoDoc.h"
- #include "DevDemoView.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDevDemoView
- IMPLEMENT_DYNCREATE(CDevDemoView, CView)
- BEGIN_MESSAGE_MAP(CDevDemoView, CView)
- //{{AFX_MSG_MAP(CDevDemoView)
- // 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()
- /////////////////////////////////////////////////////////////////////////////
- // CDevDemoView construction/destruction
- CDevDemoView::CDevDemoView()
- {
- // TODO: add construction code here
- }
- CDevDemoView::~CDevDemoView()
- {
- }
- BOOL CDevDemoView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CView::PreCreateWindow(cs);
- }
- /////////////////////////////////////////////////////////////////////////////
- // CDevDemoView drawing
- void CDevDemoView::OnDraw(CDC* pDC)
- {
- CDevDemoDoc* pDoc = GetDocument();
- ASSERT_VALID(pDoc);
- // TODO: add draw code for native data here
- }
- /////////////////////////////////////////////////////////////////////////////
- // CDevDemoView printing
- BOOL CDevDemoView::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
- void CDevDemoView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
- void CDevDemoView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
- /////////////////////////////////////////////////////////////////////////////
- // CDevDemoView diagnostics
- #ifdef _DEBUG
- void CDevDemoView::AssertValid() const
- {
- CView::AssertValid();
- }
- void CDevDemoView::Dump(CDumpContext& dc) const
- {
- CView::Dump(dc);
- }
- CDevDemoDoc* CDevDemoView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CDevDemoDoc)));
- return (CDevDemoDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CDevDemoView message handlers