home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab02 / baseline / ic_2view.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  2.2 KB  |  77 lines

  1. // IC_2View.h : interface of the CIC_2View class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CIC_2View : public CScrollView
  6. {
  7. protected: // create from serialization only
  8.     CIC_2View();
  9.     DECLARE_DYNCREATE(CIC_2View)
  10.  
  11. // Attributes
  12. public:
  13.     void CloseSession();
  14.     CIC_2Doc* GetDocument();
  15.  
  16. // Operations
  17. public:
  18.  
  19. protected:
  20.     CInternetSession * m_pInternetSession;
  21.     CHttpConnection * m_pHttpConnection;
  22.     CHttpFile * m_pHttpFile;
  23.     int m_processState;
  24.  
  25.     void SetScrollingAttributes();
  26.  
  27. // Overrides
  28.     // ClassWizard generated virtual function overrides
  29.     //{{AFX_VIRTUAL(CIC_2View)
  30.     public:
  31.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  32.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  33.     virtual void OnInitialUpdate();
  34.     virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
  35.     protected:
  36.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  37.     //}}AFX_VIRTUAL
  38.  
  39. // Implementation
  40. public:
  41.     virtual ~CIC_2View();
  42. #ifdef _DEBUG
  43.     virtual void AssertValid() const;
  44.     virtual void Dump(CDumpContext& dc) const;
  45. #endif
  46.  
  47. protected:
  48.  
  49. // Generated message map functions
  50. protected:
  51.     //{{AFX_MSG(CIC_2View)
  52.     afx_msg void OnInternetCreateSession();
  53.     afx_msg void OnUpdateInternetCreateSession(CCmdUI* pCmdUI);
  54.     afx_msg void OnInternetGetConnection();
  55.     afx_msg void OnUpdateInternetGetConnection(CCmdUI* pCmdUI);
  56.     afx_msg void OnInternetCloseSession();
  57.     afx_msg void OnUpdateInternetCloseSession(CCmdUI* pCmdUI);
  58.     afx_msg void OnInternetSendRequest();
  59.     afx_msg void OnInternetOpenRequest();
  60.     afx_msg void OnInternetReadInformation();
  61.     afx_msg void OnUpdateInternetOpenRequest(CCmdUI* pCmdUI);
  62.     afx_msg void OnUpdateInternetSendRequest(CCmdUI* pCmdUI);
  63.     afx_msg void OnUpdateInternetReadInformation(CCmdUI* pCmdUI);
  64.     afx_msg void OnInternetObtainUrl();
  65.     afx_msg void OnInternetAllTheAbove();
  66.     afx_msg void OnUpdateInternetAllTheAbove(CCmdUI* pCmdUI);
  67.     //}}AFX_MSG
  68.     DECLARE_MESSAGE_MAP()
  69. };
  70.  
  71. #ifndef _DEBUG  // debug version in IC_2View.cpp
  72. inline CIC_2Doc* CIC_2View::GetDocument()
  73.    { return (CIC_2Doc*)m_pDocument; }
  74. #endif
  75.  
  76. /////////////////////////////////////////////////////////////////////////////
  77.