home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c05 / menus3 / menus3view.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.2 KB  |  51 lines

  1. // Menus3View.h : interface of the CMenus3View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CMenus3View : public CView
  6. {
  7. protected: // create from serialization only
  8.     CMenus3View();
  9.     DECLARE_DYNCREATE(CMenus3View)
  10.  
  11. // Attributes
  12. public:
  13.     CMenus3Doc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CMenus3View)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     //}}AFX_VIRTUAL
  25.  
  26. // Implementation
  27. public:
  28.     virtual ~CMenus3View();
  29. #ifdef _DEBUG
  30.     virtual void AssertValid() const;
  31.     virtual void Dump(CDumpContext& dc) const;
  32. #endif
  33.  
  34. protected:
  35.  
  36. // Generated message map functions
  37. protected:
  38.     //{{AFX_MSG(CMenus3View)
  39.     afx_msg void OnColors();
  40.     afx_msg void OnUpdateColors(CCmdUI* pCmdUI);
  41.     //}}AFX_MSG
  42.     DECLARE_MESSAGE_MAP()
  43. };
  44.  
  45. #ifndef _DEBUG  // debug version in Menus3View.cpp
  46. inline CMenus3Doc* CMenus3View::GetDocument()
  47.    { return (CMenus3Doc*)m_pDocument; }
  48. #endif
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51.