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

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