home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch20 / grow / growview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-26  |  1.3 KB  |  59 lines

  1. // growview.h : interface of the CGrowView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CGrowView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CGrowView();
  9.     DECLARE_DYNCREATE(CGrowView)
  10.  
  11. // Attributes
  12. public:
  13.     CGrowDoc* GetDocument();
  14.  
  15.      //////////////////////
  16.      // MY CODE STARTS HERE
  17.      //////////////////////
  18.  
  19.      int m_CurrentAddedItem;
  20.  
  21.      ////////////////////
  22.      // MY CODE ENDS HERE
  23.      ////////////////////
  24.  
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Implementation
  30. public:
  31.     virtual ~CGrowView();
  32.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  33. #ifdef _DEBUG
  34.     virtual void AssertValid() const;
  35.     virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37.  
  38. protected:
  39.  
  40. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CGrowView)
  43.     afx_msg void OnGrowingItem1();
  44.     afx_msg void OnGrowingItem2();
  45.     afx_msg void OnGrowingItem3();
  46.     afx_msg void OnGrowingItem4();
  47.     afx_msg void OnGrowingItem5();
  48.     afx_msg void OnGrowingAdditem();
  49.     //}}AFX_MSG
  50.     DECLARE_MESSAGE_MAP()
  51. };
  52.  
  53. #ifndef _DEBUG  // debug version in growview.cpp
  54. inline CGrowDoc* CGrowView::GetDocument()
  55.    { return (CGrowDoc*)m_pDocument; }
  56. #endif
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.