home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c05 / lab05 / ex01 / timestampview.h < prev   
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.8 KB  |  63 lines

  1. #if !defined(TIMESTAMPVIEW__H__8EC1A8DB_1DCA_11D0_9C9B_444553540000__INCLUDED_)
  2. #define TIMESTAMPVIEW__H__8EC1A8DB_1DCA_11D0_9C9B_444553540000__INCLUDED_
  3.  
  4. // TimeStampView.h : interface of the CTimeStampView class
  5. //
  6. /////////////////////////////////////////////////////////////////////////////
  7.  
  8. class CTimeStampView : public CView
  9. {
  10. protected: // create from serialization only
  11.     CTimeStampView();
  12.     DECLARE_DYNCREATE(CTimeStampView)
  13.  
  14. // Attributes
  15. public:
  16.     CTimeStampDoc* GetDocument();
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Overrides
  22.     // ClassWizard generated virtual function overrides
  23.     //{{AFX_VIRTUAL(CTimeStampView)
  24.     public:
  25.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  27.     protected:
  28.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  29.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  30.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  31.     //}}AFX_VIRTUAL
  32.  
  33. // Implementation
  34. public:
  35.     virtual ~CTimeStampView();
  36. #ifdef _DEBUG
  37.     virtual void AssertValid() const;
  38.     virtual void Dump(CDumpContext& dc) const;
  39. #endif
  40.  
  41. protected:
  42.  
  43. // Generated message map functions
  44. protected:
  45.     //{{AFX_MSG(CTimeStampView)
  46.         // NOTE - the ClassWizard will add and remove member functions here.
  47.         //    DO NOT EDIT what you see in these blocks of generated code !
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50. };
  51.  
  52. #ifndef _DEBUG  // debug version in TimeStampView.cpp
  53. inline CTimeStampDoc* CTimeStampView::GetDocument()
  54.    { return (CTimeStampDoc*)m_pDocument; }
  55. #endif
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58.  
  59. //{{AFX_INSERT_LOCATION}}
  60. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  61.  
  62. #endif // !defined(TIMESTAMPVIEW__H__8EC1A8DB_1DCA_11D0_9C9B_444553540000__INCLUDED)
  63.