⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 benbenbrowserview.h

📁 一个多窗口的浏览器的程序benbrowse
💻 H
字号:
// benbenBrowserView.h : interface of the CBenbenBrowserView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BENBENBROWSERVIEW_H__CCAE3A42_7C04_4105_ADA8_F92DE71CE6F4__INCLUDED_)
#define AFX_BENBENBROWSERVIEW_H__CCAE3A42_7C04_4105_ADA8_F92DE71CE6F4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "HtmlViewBen.h"
class CBenbenBrowserView : public CHtmlViewBen
{
protected: // create from serialization only
	CBenbenBrowserView();
	DECLARE_DYNCREATE(CBenbenBrowserView)

// Attributes
public:
	CBenbenBrowserDoc* GetDocument();
	
// Operations
public:
	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBenbenBrowserView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel);
	virtual void OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel);
	virtual void OnDownloadComplete();
	virtual void OnStatusTextChange(LPCTSTR lpszText);
	virtual void OnProgressChange(long nProgress, long nProgressMax);
	virtual void OnDocumentComplete(LPCTSTR lpszURL);
	virtual void OnNavigateComplete2(LPCTSTR strURL);
	virtual void OnDownloadBegin();
	virtual void OnTitleChange(LPCTSTR lpszText);
	virtual BOOL OnAmbientProperty(COleControlSite* pSite, DISPID dispid, VARIANT* pvar);
	virtual void OnCommandStateChange(long nCommand, BOOL bEnable);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetbeInUse(BOOL beUsed);
	BOOL GetbeInUse();
	BOOL m_beInUse;
	int m_progress;

	BOOL m_bNavigateForward;
	BOOL m_bNavigateBack;
	bool IsIEHistoryAviliable();

	void SignAsPopup();
	bool IsPopupWin();
	virtual ~CBenbenBrowserView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	BOOL m_beActive;
	bool m_bePopUpWin;
	DWORD dwProperty;
// Generated message map functions
protected:

	//{{AFX_MSG(CBenbenBrowserView)
	afx_msg void OnGoBack();
	afx_msg void OnGoForward();
	afx_msg void OnGoSearchTheWeb();
	afx_msg void OnGoStartPage();
	afx_msg void OnViewFontsLarge();
	afx_msg void OnViewFontsLargest();
	afx_msg void OnViewFontsMedium();
	afx_msg void OnViewFontsSmall();
	afx_msg void OnViewFontsSmallest();
	afx_msg void OnViewRefresh();
	afx_msg void OnViewStop();
	afx_msg void OnSelectallEdit();
	afx_msg void OnUpdateSelectallEdit(CCmdUI* pCmdUI);
	afx_msg void OnEditCopy();
	afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
	afx_msg void OnFileSaveAs();
	afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI);
	afx_msg void OnAddtofavoritesFavorite();
	afx_msg void OnFileOpen();
	afx_msg void OnPropertiesFile();
	afx_msg void OnUpdateGoBack(CCmdUI* pCmdUI);
	afx_msg void OnUpdateGoForward(CCmdUI* pCmdUI);
	afx_msg void OnFilePrintPreview();
	afx_msg void OnFilePrint();
	afx_msg void OnFilePrintSetup();
	afx_msg void OnUpdateViewFontsLarge(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewFontsLargest(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewFontsMedium(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewFontsSmall(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewFontsSmallest(CCmdUI* pCmdUI);
	afx_msg void OnFileClose();
	afx_msg void OnEditCut();
	afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
	afx_msg void OnEditPaste();
	afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
	afx_msg void OnEditUndo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in benbenBrowserView.cpp
inline CBenbenBrowserDoc* CBenbenBrowserView::GetDocument()
   { return (CBenbenBrowserDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BENBENBROWSERVIEW_H__CCAE3A42_7C04_4105_ADA8_F92DE71CE6F4__INCLUDED_)

⌨️ 快捷键说明

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