共用方式為


CHtmlEditCtrlBase::SetDocumentHTML

Sets the HTML of the current document.

HRESULT SetDocumentHTML(
   LPCTSTR szHTML 
) const;

Parameters

  • szHTML
    The HTML.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Requirements

Header: afxhtml.h

See Also

Concepts

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase Members

CHtmlEditCtrlBase::GetDocumentHTML