IEView.h
上传用户:huashan618
上传日期:2013-03-26
资源大小:261k
文件大小:3k
- #if !defined(AFX_IEVIEW_H__BE3CCF3C_E1E6_4C47_8A73_E4E508CB7610__INCLUDED_)
- #define AFX_IEVIEW_H__BE3CCF3C_E1E6_4C47_8A73_E4E508CB7610__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // IEView.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CIEView html view
- class CIEView : public CHtmlView
- {
- protected:
- CIEView(); // protected constructor used by dynamic creation
- DECLARE_DYNCREATE(CIEView)
- // html Data
- public:
- //{{AFX_DATA(CIEView)
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
- // Attributes
- public:
- // Operations
- public:
- void EnableFrameButton();
- CString GetTitle();
- void ReadUrlDocument(LPCTSTR lpszUrl);
- BOOL SetTabItemText(LPCTSTR lpszItem);
- CString m_strTitle;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CIEView)
- public:
- virtual void OnInitialUpdate();
- virtual void OnTitleChange(LPCTSTR lpszText);
- virtual void OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel);
- virtual void OnNavigateComplete2(LPCTSTR strURL);
- virtual void OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel);
- virtual void OnDocumentComplete(LPCTSTR lpszURL);
- virtual void OnCommandStateChange(long nCommand, BOOL bEnable);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- virtual ~CIEView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- // Generated message map functions
- //{{AFX_MSG(CIEView)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- protected:
- HWND m_hostwnd;
- BOOL m_bActivedWnd;
- BOOL m_bEnableGoBack;
- BOOL m_bEnableGoForward;
- public:
- // virtual void OnProgressChange(long nProgress, long nProgressMax);
- virtual void OnStatusTextChange(LPCTSTR lpszText);
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_IEVIEW_H__BE3CCF3C_E1E6_4C47_8A73_E4E508CB7610__INCLUDED_)