home *** CD-ROM | disk | FTP | other *** search
/ Popular Software Hundred Flowers Garden / POPSOFT_BHW.iso / SOFTWARE / AUDIO / DUTTY++ / DUTTY / DATA.Z / Demoview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-08  |  1.2 KB  |  52 lines

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