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

📄 editctrlview.cpp

📁 一个资产管理软件
💻 CPP
字号:
// EditCtrlView.cpp : implementation file
//

#include "stdafx.h"
#include "PropertyManager.h"
#include "EditCtrlView.h"

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

/////////////////////////////////////////////////////////////////////////////
// CEditCtrlView

IMPLEMENT_DYNCREATE(CEditCtrlView, CFormView)

CEditCtrlView::CEditCtrlView()
	: CFormView(CEditCtrlView::IDD)
{
	//{{AFX_DATA_INIT(CEditCtrlView)
	//}}AFX_DATA_INIT
}

CEditCtrlView::~CEditCtrlView()
{
}

void CEditCtrlView::DoDataExchange(CDataExchange* pDX)
{
	CFormView::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CEditCtrlView)
	DDX_Control(pDX, IDC_STATIC_MSG, m_myweb);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CEditCtrlView, CFormView)
	//{{AFX_MSG_MAP(CEditCtrlView)
	ON_WM_SIZE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEditCtrlView diagnostics

#ifdef _DEBUG
void CEditCtrlView::AssertValid() const
{
	CFormView::AssertValid();
}

void CEditCtrlView::Dump(CDumpContext& dc) const
{
	CFormView::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CEditCtrlView message handlers

void CEditCtrlView::OnSize(UINT nType, int cx, int cy) 
{
	CFormView::OnSize(nType, cx, cy);
	
	// TODO: Add your message handler code here
	CFormView::ShowScrollBar(SB_VERT,FALSE);
	CFormView::ShowScrollBar(SB_HORZ,FALSE);

	if (GetSafeHwnd())
	{
		if (m_myweb.GetSafeHwnd())
		{
			CRect rect(0,0,cx,cy);
			m_myweb.MoveWindow(&rect);
		}
	}		
}

void CEditCtrlView::OnOK() 
{
	// TODO: Add your control notification handler code here
	
}

void CEditCtrlView::OnCancel() 
{
	// TODO: Add your control notification handler code here
	
}


bool CEditCtrlView::PrintHtmlText()
{
	struct tagVARIANT * url;
	url = &m_myweb.GetProperty_("");
	m_myweb.Navigate( "http://mengyuworkroom.y365.com", url, url, url, url);
	m_myweb.SetFocus();
	//::keybd_event(0x56,0, KEYEVENTF_KEYUP, 0);
	//keybd_event(MOUSEEVENTF_RIGHTDOWN,0,0,0);
	return true;
}

⌨️ 快捷键说明

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