Editéieren

Deelen iwwer


CHtmlEditDoc Class

Note

The Microsoft Foundation Classes (MFC) library continues to be supported. However, we're no longer adding features or updating the documentation.

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

Syntax

class AFX_NOVTABLE CHtmlEditDoc : public CDocument

Members

Public Constructors

Name Description
CHtmlEditDoc::CHtmlEditDoc Constructs a CHtmlEditDoc object.

Public Methods

Name Description
CHtmlEditDoc::GetView Retrieves the CHtmlEditView object attached to this document.
CHtmlEditDoc::IsModified Returns whether the associated view's WebBrowser control contains a document that has been modified by the user.
CHtmlEditDoc::OpenURL Opens a URL.

Inheritance Hierarchy

CObject

CCmdTarget

CDocument

CHtmlEditDoc

Requirements

Header: afxhtml.h

CHtmlEditDoc::CHtmlEditDoc

Constructs a CHtmlEditDoc object.

CHtmlEditDoc();

CHtmlEditDoc::GetView

Retrieves the CHtmlEditView object attached to this document.

virtual CHtmlEditView* GetView() const;

Return Value

Returns a pointer to the document's CHtmlEditView object.

CHtmlEditDoc::IsModified

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

virtual BOOL IsModified();

CHtmlEditDoc::OpenURL

Opens a URL.

virtual BOOL OpenURL(LPCTSTR lpszURL);

Parameters

lpszURL
The URL to open.

Return Value

Returns TRUE on success, FALSE on failure.

See also

HTMLEdit Sample
Hierarchy Chart