home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / PROPVIEW.ZIP / DevStudio / MyProjects / MdLessPpsh / MdLessPpshView.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-20  |  2.6 KB  |  106 lines

  1. // MdLessPpshView.cpp : implementation of the CMdLessPpshView class
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MdLessPpsh.h"
  6.  
  7. #include "MdLessPpshDoc.h"
  8. #include "MdLessPpshView.h"
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CMdLessPpshView
  18.  
  19. IMPLEMENT_DYNCREATE(CMdLessPpshView, CView)
  20.  
  21. BEGIN_MESSAGE_MAP(CMdLessPpshView, CView)
  22.     //{{AFX_MSG_MAP(CMdLessPpshView)
  23.         // NOTE - the ClassWizard will add and remove mapping macros here.
  24.         //    DO NOT EDIT what you see in these blocks of generated code!
  25.     //}}AFX_MSG_MAP
  26.     // Standard printing commands
  27.     ON_COMMAND(ID_FILE_PRINT, CView::OnFilePrint)
  28.     ON_COMMAND(ID_FILE_PRINT_DIRECT, CView::OnFilePrint)
  29.     ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrintPreview)
  30. END_MESSAGE_MAP()
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CMdLessPpshView construction/destruction
  34.  
  35. CMdLessPpshView::CMdLessPpshView()
  36. {
  37.     // TODO: add construction code here
  38.  
  39. }
  40.  
  41. CMdLessPpshView::~CMdLessPpshView()
  42. {
  43. }
  44.  
  45. BOOL CMdLessPpshView::PreCreateWindow(CREATESTRUCT& cs)
  46. {
  47.     // TODO: Modify the Window class or styles here by modifying
  48.     //  the CREATESTRUCT cs
  49.  
  50.     return CView::PreCreateWindow(cs);
  51. }
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54. // CMdLessPpshView drawing
  55.  
  56. void CMdLessPpshView::OnDraw(CDC* pDC)
  57. {
  58.     CMdLessPpshDoc* pDoc = GetDocument();
  59.     ASSERT_VALID(pDoc);
  60.  
  61.     // TODO: add draw code for native data here
  62. }
  63.  
  64. /////////////////////////////////////////////////////////////////////////////
  65. // CMdLessPpshView printing
  66.  
  67. BOOL CMdLessPpshView::OnPreparePrinting(CPrintInfo* pInfo)
  68. {
  69.     // default preparation
  70.     return DoPreparePrinting(pInfo);
  71. }
  72.  
  73. void CMdLessPpshView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  74. {
  75.     // TODO: add extra initialization before printing
  76. }
  77.  
  78. void CMdLessPpshView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
  79. {
  80.     // TODO: add cleanup after printing
  81. }
  82.  
  83. /////////////////////////////////////////////////////////////////////////////
  84. // CMdLessPpshView diagnostics
  85.  
  86. #ifdef _DEBUG
  87. void CMdLessPpshView::AssertValid() const
  88. {
  89.     CView::AssertValid();
  90. }
  91.  
  92. void CMdLessPpshView::Dump(CDumpContext& dc) const
  93. {
  94.     CView::Dump(dc);
  95. }
  96.  
  97. CMdLessPpshDoc* CMdLessPpshView::GetDocument() // non-debug version is inline
  98. {
  99.     ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMdLessPpshDoc)));
  100.     return (CMdLessPpshDoc*)m_pDocument;
  101. }
  102. #endif //_DEBUG
  103.  
  104. /////////////////////////////////////////////////////////////////////////////
  105. // CMdLessPpshView message handlers
  106.