home *** CD-ROM | disk | FTP | other *** search
- // -------------------------------------------------------------------------
- // Copyright @ 1997 TCK Software, Incorporated
- // All Rights Reserved
- // -------------------------------------------------------------------------
- // vfTestView.h : interface of the CMorphView class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #include "person2VF.h" // Morphing View
- #include "PalHook.h"
-
- class CMorphView : public CView
- {
- protected: // create from serialization only
- CPerson2DB m_personDB;
- CPerson2VF m_vForm; // Test form
- CPalMsgHandler m_palMsgHandler;
-
- CMorphView();
- DECLARE_DYNCREATE(CMorphView)
-
- // Attributes
- public:
- CVfTestDoc* GetDocument();
- void ResetPalette();
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMorphView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnInitialUpdate();
- virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CMorphView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMorphView)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- afx_msg void OnFilePrintScreen();
- afx_msg void OnFilePrintAll();
- afx_msg void OnFilePrintSelected();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in vfTestView.cpp
- inline CVfTestDoc* CMorphView::GetDocument()
- { return (CVfTestDoc*)m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-