home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / dynamenu / dmview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.9 KB  |  67 lines

  1. // dmview.h
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12. //
  13. // Purpose: interface of the CDynaMenuView class
  14. //
  15. // Functions:
  16. //   Most of this file was generated by AppWizard.  The functions
  17. //   which contain code specific to this sample are:
  18. //
  19. //      CDynaMenuView::OnDraw()             -- draw the view contents
  20. //
  21. //   These functions are implemented in dmview.cpp
  22.  
  23. class CDynaMenuView : public CView
  24. {
  25. protected: // create from serialization only
  26.     CDynaMenuView();
  27.     DECLARE_DYNCREATE(CDynaMenuView)
  28.  
  29. // Attributes
  30. public:
  31.     CDynaMenuDoc* GetDocument();
  32.  
  33. // Operations
  34. public:
  35.  
  36. // Implementation
  37. public:
  38.     virtual ~CDynaMenuView();
  39.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47.     // Printing support
  48.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  49.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  50.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  51.  
  52. // Generated message map functions
  53. protected:
  54.     //{{AFX_MSG(CDynaMenuView)
  55.         // NOTE - the ClassWizard will add and remove member functions here.
  56.         //    DO NOT EDIT what you see in these blocks of generated code !
  57.     //}}AFX_MSG
  58.     DECLARE_MESSAGE_MAP()
  59. };
  60.  
  61. #ifndef _DEBUG  // debug version in dmview.cpp
  62. inline CDynaMenuDoc* CDynaMenuView::GetDocument()
  63.    { return (CDynaMenuDoc*)m_pDocument; }
  64. #endif
  65.  
  66. /////////////////////////////////////////////////////////////////////////////
  67.