home *** CD-ROM | disk | FTP | other *** search
/ Master Visual C++ 1.5 / MASTERVC15.ISO / vcprog / original / ch08 / chkbox / chkbovw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-16  |  1.3 KB  |  66 lines

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