home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / VFORM.ZIP / Samples / vfDao / vfDaoView.h < prev   
Encoding:
C/C++ Source or Header  |  1998-10-10  |  2.0 KB  |  75 lines

  1. // vfDaoView.h : interface of the CVfDaoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_VFDAOVIEW_H__29E6CFEF_841F_11D1_88FB_00A0C9050951__INCLUDED_)
  6. #define AFX_VFDAOVIEW_H__29E6CFEF_841F_11D1_88FB_00A0C9050951__INCLUDED_
  7.  
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11.  
  12. #include "MovieVF.h"
  13.  
  14. class CVfDaoView : public CView
  15. {
  16. protected:
  17.     CMovieVF    m_vfMovie;                    // The VForm object
  18.  
  19. protected: // create from serialization only
  20.     CVfDaoView();
  21.     DECLARE_DYNCREATE(CVfDaoView)
  22.  
  23. // Attributes
  24. public:
  25.     CVfDaoDoc* GetDocument();
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CVfDaoView)
  33.     public:
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  36.     virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
  37.     protected:
  38.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  39.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  40.     virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. public:
  45.     virtual ~CVfDaoView();
  46. #ifdef _DEBUG
  47.     virtual void AssertValid() const;
  48.     virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50.  
  51. protected:
  52.  
  53. // Generated message map functions
  54. protected:
  55.     //{{AFX_MSG(CVfDaoView)
  56.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  57.     afx_msg void OnSize(UINT nType, int cx, int cy);
  58.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  59.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  60.     //}}AFX_MSG
  61.     DECLARE_MESSAGE_MAP()
  62. };
  63.  
  64. #ifndef _DEBUG  // debug version in vfDaoView.cpp
  65. inline CVfDaoDoc* CVfDaoView::GetDocument()
  66.    { return (CVfDaoDoc*)m_pDocument; }
  67. #endif
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.  
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  73.  
  74. #endif // !defined(AFX_VFDAOVIEW_H__29E6CFEF_841F_11D1_88FB_00A0C9050951__INCLUDED_)
  75.