home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab03 / ex01 / ftpview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.8 KB  |  67 lines

  1. #if !defined(FTPVIEW_H__7335DC6B_2B1D_11D0_9F76_00AA00680BB3__INCLUDED_)
  2. #define FTPVIEW_H__7335DC6B_2B1D_11D0_9F76_00AA00680BB3__INCLUDED_
  3.  
  4. // ftpView.h : interface of the CFtpView class
  5. //
  6. /////////////////////////////////////////////////////////////////////////////
  7. class CFtpDoc;
  8.  
  9. class CFtpView : public CScrollView
  10. {
  11. protected: // create from serialization only
  12.     CFtpView();
  13.     void OnInitialUpdate();
  14.     DECLARE_DYNCREATE(CFtpView)
  15.  
  16. // Attributes
  17. public:
  18.     CFtpDoc* GetDocument();
  19.  
  20. // Operations
  21. public:
  22.  
  23. // Overrides
  24.     // ClassWizard generated virtual function overrides
  25.     //{{AFX_VIRTUAL(CFtpView)
  26.     public:
  27.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  28.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29.     protected:
  30.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  31.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  32.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  33.     //}}AFX_VIRTUAL
  34.  
  35. // Implementation
  36. public:
  37.     void AddToView(LPCTSTR string);
  38.     CStringArray m_strings;
  39.     virtual ~CFtpView();
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CFtpView)
  50.     afx_msg void OnFileFtpTransfer();
  51.     afx_msg void OnViewClear();
  52.     //}}AFX_MSG
  53.     DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. #ifndef _DEBUG  // debug version in ftpView.cpp
  57. inline CFtpDoc* CFtpView::GetDocument()
  58.    { return (CFtpDoc*)m_pDocument; }
  59. #endif
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.  
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  65.  
  66. #endif // !defined(FTPVIEW_H__7335DC6B_2B1D_11D0_9F76_00AA00680BB3__INCLUDED)
  67.