home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch16 / fileit / fileivw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-23  |  1.4 KB  |  68 lines

  1. // fileivw.h : interface of the CFileitView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. //////////////////////
  6. // MY CODE STARTS HERE
  7. //////////////////////
  8.  
  9. #include "MyDlg.h"
  10.  
  11. ////////////////////
  12. // MY CODE ENDS HERE
  13. ////////////////////
  14.  
  15.  
  16.  
  17. class CFileitView : public CView
  18. {
  19. protected: // create from serialization only
  20.     CFileitView();
  21.     DECLARE_DYNCREATE(CFileitView)
  22.  
  23. // Attributes
  24. public:
  25.     CFileitDoc* GetDocument();
  26.  
  27.      //////////////////////
  28.      // MY CODE STARTS HERE
  29.      //////////////////////
  30.  
  31.     // Create an object dlg (a dialog box) of class CMyDlg.
  32.      CMyDlg dlg;
  33.  
  34.      ////////////////////
  35.      // MY CODE ENDS HERE
  36.      ////////////////////
  37.  
  38.  
  39. // Operations
  40. public:
  41.  
  42. // Implementation
  43. public:
  44.     virtual ~CFileitView();
  45.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50.  
  51. protected:
  52.  
  53. // Generated message map functions
  54. protected:
  55.     //{{AFX_MSG(CFileitView)
  56.     afx_msg void OnFileTryit();
  57.     afx_msg void OnFileReadit();
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60. };
  61.  
  62. #ifndef _DEBUG  // debug version in fileivw.cpp
  63. inline CFileitDoc* CFileitView::GetDocument()
  64.    { return (CFileitDoc*)m_pDocument; }
  65. #endif
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.