Partager via


CHtmlEditCtrl Class

Provides the functionality of the WebBrowser ActiveX control in an MFC window.

class CHtmlEditCtrl: public CWnd, 
   public CHtmlEditCtrlBase< CHtmlEditCtrl >

Members

Public Constructors

Name

Description

CHtmlEditCtrl::CHtmlEditCtrl

Constructs a CHtmlEditCtrl object.

Public Methods

Name

Description

CHtmlEditCtrl::Create

Creates a WebBrowser ActiveX control and attaches it to the CHtmlEditCtrl object. This function automatically puts the WebBrowser ActiveX control into edit mode.

CHtmlEditCtrl::GetDHtmlDocument

Retrieves the IHTMLDocument2 interface on the document currently loaded in the contained WebBrowser control.

CHtmlEditCtrl::GetStartDocument

Retrieves the URL to a default document to load in the contained WebBrowser control.

Remarks

The hosted WebBrowser control is automatically put into edit mode after it is created.

Inheritance Hierarchy

CObject

CCmdTarget

CHtmlEditCtrlBase

CWnd

CHtmlEditCtrl

Requirements

Header: afxhtml.h

See Also

Reference

Hierarchy Chart