ex09bview.h

来自「vc.net内幕系列源码」· C头文件 代码 · 共 67 行

H
67
字号
// Ex09bView.h : interface of the CEx09bView class
//


#pragma once
#include "cwebbrowser2.h"

class CEx09bView : public CView
{
protected: // create from serialization only
	CEx09bView();
	DECLARE_DYNCREATE(CEx09bView)

// Attributes
public:
	CEx09bDoc* GetDocument() const;

// Operations
public:

// Overrides
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:

// Implementation
public:
	virtual ~CEx09bView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()

private:
 CWebBrowser2 m_target;
 CWebBrowser2 m_search; 

private:
    static const char s_engineGoogle[];


public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);

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()

};

#ifndef _DEBUG  // debug version in Ex09bView.cpp
inline CEx09bDoc* CEx09bView::GetDocument() const
   { return reinterpret_cast<CEx09bDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?