home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / VFORM.ZIP / Samples / vfTest / MorphView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-10-10  |  2.1 KB  |  74 lines

  1. // -------------------------------------------------------------------------
  2. // Copyright @ 1997 TCK Software, Incorporated
  3. // All Rights Reserved
  4. // -------------------------------------------------------------------------
  5. // vfTestView.h : interface of the CMorphView class
  6. //
  7. /////////////////////////////////////////////////////////////////////////////
  8.  
  9. #include "person2VF.h"            // Morphing View
  10. #include "PalHook.h"
  11.  
  12. class CMorphView : public CView
  13. {
  14. protected: // create from serialization only
  15.     CPerson2DB    m_personDB;
  16.     CPerson2VF    m_vForm;                    // Test form
  17.     CPalMsgHandler m_palMsgHandler;
  18.  
  19.     CMorphView();
  20.     DECLARE_DYNCREATE(CMorphView)
  21.  
  22. // Attributes
  23. public:
  24.     CVfTestDoc* GetDocument();
  25.     void ResetPalette();
  26.  
  27. // Operations
  28. public:
  29.  
  30. // Overrides
  31.     // ClassWizard generated virtual function overrides
  32.     //{{AFX_VIRTUAL(CMorphView)
  33.     public:
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.     virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  36.     virtual void OnInitialUpdate();
  37.     virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
  38.     protected:
  39.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  40.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  41.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  42.     //}}AFX_VIRTUAL
  43.  
  44. // Implementation
  45. public:
  46.     virtual ~CMorphView();
  47. #ifdef _DEBUG
  48.     virtual void AssertValid() const;
  49.     virtual void Dump(CDumpContext& dc) const;
  50. #endif
  51.  
  52. protected:
  53.  
  54. // Generated message map functions
  55. protected:
  56.     //{{AFX_MSG(CMorphView)
  57.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  58.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  59.     afx_msg void OnSize(UINT nType, int cx, int cy);
  60.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  61.     afx_msg void OnFilePrintScreen();
  62.     afx_msg void OnFilePrintAll();
  63.     afx_msg void OnFilePrintSelected();
  64.     //}}AFX_MSG
  65.     DECLARE_MESSAGE_MAP()
  66. };
  67.  
  68. #ifndef _DEBUG  // debug version in vfTestView.cpp
  69. inline CVfTestDoc* CMorphView::GetDocument()
  70.    { return (CVfTestDoc*)m_pDocument; }
  71. #endif
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74.