home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / advanced / collect / collevw.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  2KB  |  63 lines

  1. // collevw.h : interface of the CCollectView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. class CCollectView : public CView
  14. {
  15. protected: // create from serialization only
  16.     CCollectView();
  17.     DECLARE_DYNCREATE(CCollectView)
  18.  
  19. // Attributes
  20. public:
  21.     CCollectDoc* GetDocument();
  22.  
  23. protected:
  24.     CStringList m_stringList;
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Overrides
  30.     // ClassWizard generate virtual function overrides
  31.     //{{AFX_VIRTUAL(CCollectView)
  32.     public:
  33.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  34.     protected:
  35.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  36.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  37.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  38.     //}}AFX_VIRTUAL
  39.  
  40. // Implementation
  41. public:
  42.     virtual ~CCollectView();
  43. #ifdef _DEBUG
  44.     virtual void AssertValid() const;
  45.     virtual void Dump(CDumpContext& dc) const;
  46. #endif
  47.  
  48. protected:
  49.  
  50. // Generated message map functions
  51. protected:
  52.     //{{AFX_MSG(CCollectView)
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55. };
  56.  
  57. #ifndef _DEBUG  // debug version in collevw.cpp
  58. inline CCollectDoc* CCollectView::GetDocument()
  59.    { return (CCollectDoc*)m_pDocument; }
  60. #endif
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63.