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