// mymfc24BView.h : interface of the CMymfc24BView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYMFC24BVIEW_H__F36D6E06_AF45_4F0F_B0D4_E6921266028E__INCLUDED_)
#define AFX_MYMFC24BVIEW_H__F36D6E06_AF45_4F0F_B0D4_E6921266028E__INCLUDED_

#include "webbrowser2.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CMymfc24BView : public CView
{
protected: // create from serialization only
	CMymfc24BView();
	DECLARE_DYNCREATE(CMymfc24BView)

// Attributes
public:
	CMymfc24BDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMymfc24BView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMymfc24BView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMymfc24BView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

protected:
    afx_msg void OnBeforeNavigateExplorer1(LPCTSTR URL, long Flags, LPCTSTR TargetFrameName, VARIANT FAR* PostData, LPCTSTR Headers, BOOL FAR* Cancel);
    afx_msg void OnTitleChangeExplorer2(LPCTSTR Text);
    DECLARE_EVENTSINK_MAP()

private:
	CWebBrowser2 m_target;
	CWebBrowser2 m_search;
private:
    static const char s_engineYahoo[];
};

#ifndef _DEBUG  // debug version in mymfc24BView.cpp
inline CMymfc24BDoc* CMymfc24BView::GetDocument()
   { return (CMymfc24BDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MYMFC24BVIEW_H__F36D6E06_AF45_4F0F_B0D4_E6921266028E__INCLUDED_)

