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

  1. // VfbExView.h : interface of the CVfbExView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. #if !defined(AFX_VFBEXVIEW_H__B643EC16_0D38_11D2_88FB_00A0C9050951__INCLUDED_)
  6. #define AFX_VFBEXVIEW_H__B643EC16_0D38_11D2_88FB_00A0C9050951__INCLUDED_
  7.  
  8. #if _MSC_VER >= 1000
  9. #pragma once
  10. #endif // _MSC_VER >= 1000
  11.  
  12. #include "DynamicVf.h"
  13. #include "PalHook.h"
  14.  
  15. // ---- Forward Declarations ----
  16. class CVfBldrDoc;
  17. class CVfbExDoc;
  18.  
  19. // -------------------------------------------------------------------------
  20. //
  21. // -------------------------------------------------------------------------
  22. class CVfbExView : public CScrollView
  23. {
  24. protected:
  25.     DynamicVf        m_vForm;                    // The VForm
  26.      CPalMsgHandler    m_palMsgHandler;
  27.  
  28. protected: // create from serialization only
  29.     CVfbExView();
  30.     DECLARE_DYNCREATE(CVfbExView)
  31.  
  32. // Attributes
  33. public:
  34.     CVfbExDoc* GetDocument();
  35.     BOOL    LoadVfbFile(LPCTSTR lpszPathName);
  36.     void    ResetPalette()    { m_palMsgHandler.DoRealizePalette(TRUE); }
  37.     void    SetScrollByVForm();
  38.  
  39. // Operations
  40. public:
  41.  
  42. // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(CVfbExView)
  45.     public:
  46.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  47.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  48.     virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
  49.     protected:
  50.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  51.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  52.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  53.     virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
  54.     //}}AFX_VIRTUAL
  55.  
  56. // Implementation
  57. public:
  58.     virtual ~CVfbExView();
  59. #ifdef _DEBUG
  60.     virtual void AssertValid() const;
  61.     virtual void Dump(CDumpContext& dc) const;
  62. #endif
  63.  
  64. protected:
  65.  
  66. // Generated message map functions
  67. protected:
  68.     //{{AFX_MSG(CVfbExView)
  69.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  70.     afx_msg void OnSize(UINT nType, int cx, int cy);
  71.     afx_msg void OnSetFocus(CWnd* pOldWnd);
  72.     afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  73.     afx_msg void OnPrintscrnAll();
  74.     afx_msg void OnPrintscrnSel();
  75.     afx_msg void OnPrintscrnScreen();
  76.     afx_msg void OnPrintrptAll();
  77.     afx_msg void OnPrintrptSel();
  78.     afx_msg void OnPrintrptScreen();
  79.     afx_msg void OnPreviewscrnAll();
  80.     afx_msg void OnPreviewscrnSel();
  81.     afx_msg void OnPreviewscrnScreen();
  82.     afx_msg void OnPreviewrptAll();
  83.     afx_msg void OnPreviewrptSel();
  84.     afx_msg void OnPreviewrptScreen();
  85.     afx_msg void OnViewGridmode();
  86.     afx_msg void OnUpdateViewGridmode(CCmdUI* pCmdUI);
  87.     //}}AFX_MSG
  88.     DECLARE_MESSAGE_MAP()
  89. };
  90.  
  91. #ifndef _DEBUG  // debug version in VfbExView.cpp
  92. inline CVfbExDoc* CVfbExView::GetDocument()
  93.    { return (CVfbExDoc*)m_pDocument; }
  94. #endif
  95.  
  96. /////////////////////////////////////////////////////////////////////////////
  97.  
  98. //{{AFX_INSERT_LOCATION}}
  99. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  100.  
  101. #endif // !defined(AFX_VFBEXVIEW_H__B643EC16_0D38_11D2_88FB_00A0C9050951__INCLUDED_)
  102.