www.gusucode.com > 基于VC编程界面编程高级应用技术源码程序 > VC界面编程高级应用技术/code/1/DevDemo/HTMLDOC.cpp
// HTMLDOC.cpp : implementation file // #include "stdafx.h" #include "DevDemo.h" #include "HTMLDOC.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CHTMLDOC IMPLEMENT_DYNCREATE(CHTMLDOC, CDocument) CHTMLDOC::CHTMLDOC() { } BOOL CHTMLDOC::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; return TRUE; } CHTMLDOC::~CHTMLDOC() { } BEGIN_MESSAGE_MAP(CHTMLDOC, CDocument) //{{AFX_MSG_MAP(CHTMLDOC) // NOTE - the ClassWizard will add and remove mapping macros here. //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CHTMLDOC diagnostics #ifdef _DEBUG void CHTMLDOC::AssertValid() const { CDocument::AssertValid(); } void CHTMLDOC::Dump(CDumpContext& dc) const { CDocument::Dump(dc); } #endif //_DEBUG ///////////////////////////////////////////////////////////////////////////// // CHTMLDOC serialization void CHTMLDOC::Serialize(CArchive& ar) { if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here } } ///////////////////////////////////////////////////////////////////////////// // CHTMLDOC commands