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

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