home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch04 / say / sayview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-19  |  940 b   |  43 lines

  1. // sayview.h : interface of the CSayView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CSayView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CSayView();
  9.     DECLARE_DYNCREATE(CSayView)
  10.  
  11. // Attributes
  12. public:
  13.     CSayDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Implementation
  19. public:
  20.     virtual ~CSayView();
  21.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  22. #ifdef _DEBUG
  23.     virtual void AssertValid() const;
  24.     virtual void Dump(CDumpContext& dc) const;
  25. #endif
  26.  
  27. protected:
  28.  
  29. // Generated message map functions
  30. protected:
  31.     //{{AFX_MSG(CSayView)
  32.     afx_msg void OnFileSayhello();
  33.     //}}AFX_MSG
  34.     DECLARE_MESSAGE_MAP()
  35. };
  36.  
  37. #ifndef _DEBUG  // debug version in sayview.cpp
  38. inline CSayDoc* CSayView::GetDocument()
  39.    { return (CSayDoc*)m_pDocument; }
  40. #endif
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43.