home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 23 / IOPROG_23.ISO / SOFT / VFORM.ZIP / Samples / vfTest / vfTestView.h < prev    next >
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 CVfTestView class
  6. //
  7. /////////////////////////////////////////////////////////////////////////////
  8.  
  9. #include "testVF.h"
  10. #include "PalHook.h"
  11.  
  12. class CVfTestView : public CView
  13. {
  14. protected: // create from serialization only
  15.     CTestVF    m_vForm;                    // Test form
  16.     // CWnd    m_vForm2;                        // Test form2
  17.     CPalMsgHandler m_palMsgHandler;
  18.  
  19.     CVfTestView();
  20.     DECLARE_DYNCREATE(CVfTestView)
  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(CVfTestView)
  33.     public:
  34.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  35.     virtual void OnInitialUpdate();
  36.     virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
  37.     protected:
  38.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  39.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  40.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  41.     virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
  42.     virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  43.     //}}AFX_VIRTUAL
  44.  
  45. // Implementation
  46. public:
  47.     virtual ~CVfTestView();
  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(CVfTestView)
  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* CVfTestView::GetDocument()
  71.    { return (CVfTestDoc*)m_pDocument; }
  72. #endif
  73.  
  74. /////////////////////////////////////////////////////////////////////////////
  75.