IEView.h
上传用户:huashan618
上传日期:2013-03-26
资源大小:261k
文件大小:3k
源码类别:

浏览器

开发平台:

Visual C++

  1. #if !defined(AFX_IEVIEW_H__BE3CCF3C_E1E6_4C47_8A73_E4E508CB7610__INCLUDED_)
  2. #define AFX_IEVIEW_H__BE3CCF3C_E1E6_4C47_8A73_E4E508CB7610__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // IEView.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CIEView html view
  10. class CIEView : public CHtmlView
  11. {
  12. protected:
  13. CIEView();           // protected constructor used by dynamic creation
  14. DECLARE_DYNCREATE(CIEView)
  15. // html Data
  16. public:
  17. //{{AFX_DATA(CIEView)
  18. // NOTE: the ClassWizard will add data members here
  19. //}}AFX_DATA
  20. // Attributes
  21. public:
  22. // Operations
  23. public:
  24. void EnableFrameButton();
  25. CString GetTitle();
  26. void ReadUrlDocument(LPCTSTR lpszUrl);
  27. BOOL SetTabItemText(LPCTSTR lpszItem);
  28. CString m_strTitle;
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(CIEView)
  32. public:
  33. virtual void OnInitialUpdate();
  34. virtual void OnTitleChange(LPCTSTR lpszText);
  35. virtual void OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel);
  36. virtual void OnNavigateComplete2(LPCTSTR strURL);
  37. virtual void OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel);
  38. virtual void OnDocumentComplete(LPCTSTR lpszURL);
  39. virtual void OnCommandStateChange(long nCommand, BOOL bEnable);
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  42. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  43. virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
  44. //}}AFX_VIRTUAL
  45. // Implementation
  46. protected:
  47. virtual ~CIEView();
  48. #ifdef _DEBUG
  49. virtual void AssertValid() const;
  50. virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52. // Generated message map functions
  53. //{{AFX_MSG(CIEView)
  54. // NOTE - the ClassWizard will add and remove member functions here.
  55. //}}AFX_MSG
  56. DECLARE_MESSAGE_MAP()
  57. protected:
  58. HWND    m_hostwnd;
  59. BOOL m_bActivedWnd;
  60. BOOL m_bEnableGoBack;
  61. BOOL m_bEnableGoForward;
  62. public:
  63. // virtual void OnProgressChange(long nProgress, long nProgressMax);
  64. virtual void OnStatusTextChange(LPCTSTR lpszText);
  65. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  66. };
  67. /////////////////////////////////////////////////////////////////////////////
  68. //{{AFX_INSERT_LOCATION}}
  69. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  70. #endif // !defined(AFX_IEVIEW_H__BE3CCF3C_E1E6_4C47_8A73_E4E508CB7610__INCLUDED_)