home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap04 / lst42 / lst42view.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-21  |  1.4 KB  |  56 lines

  1. // lst42View.h : interface of the CLst42View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CLst42View : public CView
  6. {
  7. protected: // create from serialization only
  8.     CLst42View();
  9.     DECLARE_DYNCREATE(CLst42View)
  10.  
  11. // Attributes
  12. public:
  13.     CLst42Doc* GetDocument();
  14.  
  15. // Operations
  16. public:
  17.  
  18. // Overrides
  19.     // ClassWizard generated virtual function overrides
  20.     //{{AFX_VIRTUAL(CLst42View)
  21.     public:
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  24.     protected:
  25.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  26.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  27.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  28.     //}}AFX_VIRTUAL
  29.  
  30. // Implementation
  31. public:
  32.     virtual ~CLst42View();
  33. #ifdef _DEBUG
  34.     virtual void AssertValid() const;
  35.     virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37.  
  38. protected:
  39.  
  40. // Generated message map functions
  41. protected:
  42.     //{{AFX_MSG(CLst42View)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.         //    DO NOT EDIT what you see in these blocks of generated code !
  45.     afx_msg void OnCancelEditSrvr();
  46.     //}}AFX_MSG
  47.     DECLARE_MESSAGE_MAP()
  48. };
  49.  
  50. #ifndef _DEBUG  // debug version in lst42View.cpp
  51. inline CLst42Doc* CLst42View::GetDocument()
  52.    { return (CLst42Doc*)m_pDocument; }
  53. #endif
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56.