CHtmlEditDoc Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CHtmlEditDoc Class.

With CHtmlEditView, provides the functionality of the WebBrowser editing platform within the context of the MFC document-view architecture.

class AFX_NOVTABLE CHtmlEditDoc : public CDocument  

Public Constructors

NameDescription
CHtmlEditDoc::CHtmlEditDocConstructs a CHtmlEditDoc object.

Public Methods

NameDescription
CHtmlEditDoc::GetViewRetrieves the CHtmlEditView object attached to this document.
CHtmlEditDoc::IsModifiedReturns whether the associated view's WebBrowser control contains a document that has been modified by the user.
CHtmlEditDoc::OpenURLOpens a URL.

CObject

CCmdTarget

CDocument

CHtmlEditDoc

Header: afxhtml.h

Constructs a CHtmlEditDoc object.

CHtmlEditDoc();

Retrieves the CHtmlEditView object attached to this document.

virtual CHtmlEditView* GetView() const;  

Return Value

Returns a pointer to the document's CHtmlEditView object.

Returns whether the associated view's WebBrowser control contains a document that has been modified by the user.

virtual BOOL IsModified();

Opens a URL.

virtual BOOL OpenURL(LPCTSTR lpszURL);

Parameters

lpszURL
The URL to open.

Return Value

Returns TRUE on success, FALSE on failure.

HTMLEdit Sample
Hierarchy Chart

Show: