home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch21 / mytool / mytoovw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-26  |  1.2 KB  |  56 lines

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