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

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