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

  1. // sayhevw.h : interface of the CSayhelloView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CSayhelloView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CSayhelloView();
  9.     DECLARE_DYNCREATE(CSayhelloView)
  10.  
  11. // Attributes
  12. public:
  13.     CSayhelloDoc* GetDocument();
  14.  
  15.      //////////////////////
  16.      // MY CODE STARTS HERE
  17.      //////////////////////
  18.  
  19.      int m_HelloSession;
  20.      int m_ItsBeenSession;
  21.      
  22.      ////////////////////
  23.      // MY CODE ENDS HERE
  24.      ////////////////////
  25.  
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Implementation
  31. public:
  32.     virtual ~CSayhelloView();
  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(CSayhelloView)
  44.     afx_msg void OnFileSayhello();
  45.     afx_msg void OnFileSayhaveaniceday();
  46.     afx_msg void OnFileSaygoodbye();
  47.     //}}AFX_MSG
  48.     DECLARE_MESSAGE_MAP()
  49. };
  50.  
  51. #ifndef _DEBUG  // debug version in sayhevw.cpp
  52. inline CSayhelloDoc* CSayhelloView::GetDocument()
  53.    { return (CSayhelloDoc*)m_pDocument; }
  54. #endif
  55.  
  56. /////////////////////////////////////////////////////////////////////////////
  57.