// ViewerView.h : interface of the CViewerView class // #pragma once class CViewerView : public CHtmlView { protected: // create from serialization only CViewerView(); DECLARE_DYNCREATE(CViewerView) // Attributes public: CViewerDoc* GetDocument() const; // Operations public: // Overrides public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); protected: virtual void OnInitialUpdate(); // called first time after construct // Implementation public: virtual ~CViewerView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: DECLARE_MESSAGE_MAP() CString _path; CString files[255]; // replace with an MFC collection class int MaxCount; int Count; LPDISPATCH pDoc; IHTMLDocument2* pDoc2; public: afx_msg void OnBnClickedButton1(); afx_msg void OnTimer(UINT nTimerID); bool GetHTMLDocPointer(); void ReleaseHTMLDocument(); virtual void OnNavigateComplete2(LPCTSTR strURL); virtual void OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel); }; #ifndef _DEBUG // debug version in ViewerView.cpp inline CViewerDoc* CViewerView::GetDocument() const { return reinterpret_cast(m_pDocument); } #endif