📄 ex_htmlview.cpp
字号:
// Ex_HtmlView.cpp : implementation of the CEx_HtmlView class
//
#include "stdafx.h"
#include "Ex_Html.h"
#include "Ex_HtmlDoc.h"
#include "Ex_HtmlView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEx_HtmlView
IMPLEMENT_DYNCREATE(CEx_HtmlView, CHtmlView)
BEGIN_MESSAGE_MAP(CEx_HtmlView, CHtmlView)
//{{AFX_MSG_MAP(CEx_HtmlView)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CHtmlView::OnFilePrint)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEx_HtmlView construction/destruction
CEx_HtmlView::CEx_HtmlView()
{
// TODO: add construction code here
}
CEx_HtmlView::~CEx_HtmlView()
{
}
BOOL CEx_HtmlView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CHtmlView::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
// CEx_HtmlView drawing
void CEx_HtmlView::OnDraw(CDC* pDC)
{
CEx_HtmlDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
}
void CEx_HtmlView::OnInitialUpdate()
{
CHtmlView::OnInitialUpdate();
// TODO: This code navigates to a popular spot on the web.
// change the code to go where you'd like.
Navigate2(_T("http://www.microsoft.com/visualc/"),NULL,NULL);
}
/////////////////////////////////////////////////////////////////////////////
// CEx_HtmlView printing
/////////////////////////////////////////////////////////////////////////////
// CEx_HtmlView diagnostics
#ifdef _DEBUG
void CEx_HtmlView::AssertValid() const
{
CHtmlView::AssertValid();
}
void CEx_HtmlView::Dump(CDumpContext& dc) const
{
CHtmlView::Dump(dc);
}
CEx_HtmlDoc* CEx_HtmlView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CEx_HtmlDoc)));
return (CEx_HtmlDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CEx_HtmlView message handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -