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

📄 fullscreenmode.cpp

📁 Displaying Multiple Views in IE
💻 CPP
字号:
/**************************************************************************
   THIS CODE AND INFORMATION IS PROVIDED 'AS IS' WITHOUT WARRANTY OF
   ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
   THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
   PARTICULAR PURPOSE.
   Author: Barretto VN  7/2002
**************************************************************************/



// FullScreenMode.cpp : implementation file
//

#include "stdafx.h"
#include "FavsMV.h"
#include "FullScreenMode.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFullScreenMode dialog


CFullScreenMode::CFullScreenMode(CWnd* pParent /*=NULL*/)
	: CDialog(CFullScreenMode::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFullScreenMode)
		// NOTE: the ClassWizard will add member initialization here
	m_URL = "";
	//}}AFX_DATA_INIT
}


void CFullScreenMode::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFullScreenMode)
	DDX_Control(pDX, IDC_EXPLORER, m_WebBrowser);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CFullScreenMode, CDialog)
	//{{AFX_MSG_MAP(CFullScreenMode)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFullScreenMode message handlers

BOOL CFullScreenMode::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	CWnd* dt = this->GetDesktopWindow();
	CRect rect;
	dt->GetWindowRect(&rect);
	MoveWindow(0,0 , rect.right , rect.bottom , TRUE);
	m_WebBrowser.MoveWindow(0,0,rect.right-5 , rect.bottom-25);
	m_WebBrowser.ModifyStyleEx(NULL, WS_EX_CLIENTEDGE);
	m_WebBrowser.Navigate(m_URL,NULL,NULL,NULL,NULL);

	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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