home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 31 / CDASC_31_1996_juillet_aout.iso / vrac / wdj0796.zip / RAJA.ZIP / GENERVW.H < prev    next >
C/C++ Source or Header  |  1996-03-08  |  1KB  |  44 lines

  1. // genervw.h : interface of the CGenericView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CGenericView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CGenericView();
  9.     DECLARE_DYNCREATE(CGenericView)
  10.  
  11. // Attributes
  12. public:
  13.     CGenericDoc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Implementation
  19. public:
  20.     virtual ~CGenericView();
  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(CGenericView)
  32.         // NOTE - the ClassWizard will add and remove member functions here.
  33.         //    DO NOT EDIT what you see in these blocks of generated code !
  34.     //}}AFX_MSG
  35.     DECLARE_MESSAGE_MAP()
  36. };
  37.  
  38. #ifndef _DEBUG  // debug version in genervw.cpp
  39. inline CGenericDoc* CGenericView::GetDocument()
  40.    { return (CGenericDoc*)m_pDocument; }
  41. #endif
  42.  
  43. /////////////////////////////////////////////////////////////////////////////
  44.