home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch28 / announce / annouvw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-11  |  983 b   |  43 lines

  1. // annouvw.h : interface of the CAnnounceView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CAnnounceView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CAnnounceView();
  9.     DECLARE_DYNCREATE(CAnnounceView)
  10.  
  11. // Attributes
  12. public:
  13.     CAnnounceDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Implementation
  19. public:
  20.     virtual ~CAnnounceView();
  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(CAnnounceView)
  32.     afx_msg void OnPaint();
  33.     //}}AFX_MSG
  34.     DECLARE_MESSAGE_MAP()
  35. };
  36.  
  37. #ifndef _DEBUG  // debug version in annouvw.cpp
  38. inline CAnnounceDoc* CAnnounceView::GetDocument()
  39.    { return (CAnnounceDoc*)m_pDocument; }
  40. #endif
  41.  
  42. /////////////////////////////////////////////////////////////////////////////
  43.