Click here to Skip to main content
15,896,487 members
Articles / Desktop Programming / MFC

Integrating DHTML into MFC Views

Rate me:
Please Sign up or sign in to vote.
4.72/5 (23 votes)
30 Jan 20023 min read 400.4K   6.8K   106  
Demonstrates integrating DHTML into MFC Views, and using HTML in views to get feedback from the browser via connection points
// DTestDoc.cpp : implementation of the CDTestDoc class
//

#include "stdafx.h"
#include "DTest.h"

#include "DTestDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CDTestDoc

IMPLEMENT_DYNCREATE(CDTestDoc, CDocument)

BEGIN_MESSAGE_MAP(CDTestDoc, CDocument)
END_MESSAGE_MAP()


// CDTestDoc construction/destruction

CDTestDoc::CDTestDoc()
{
	// TODO: add one-time construction code here

}

CDTestDoc::~CDTestDoc()
{
}

BOOL CDTestDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}




// CDTestDoc serialization

void CDTestDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}


// CDTestDoc diagnostics

#ifdef _DEBUG
void CDTestDoc::AssertValid() const
{
	CDocument::AssertValid();
}

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


// CDTestDoc commands

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) Software Kinetics
United Kingdom United Kingdom




Software Kinetics
are experts in developing customised and bespoke applications and have expertise in the development of desktop, mobile and internet applications on Windows.


We specialise in:

  • User Interface Design
  • Desktop Development
  • Windows Phone Development
  • Windows Presentation Framework
  • Windows Forms
  • Windows Communication Framework
  • Windows Services
  • Network Applications
  • Database Applications
  • Web Development
  • Web Services
  • Silverlight
  • ASP.net


Visit Software Kinetics

Comments and Discussions