IHTMLDoc::CreateComponent Method
Description
This method facilitates the insertion of HTML content, supporting both standard HTML elements and WebComponents with custom elements.
Syntax
[id(0x000000CD)]
HRESULT _stdcall CreateComponent(
[in] BSTR Id,
[in] BSTR Html,
[in] __int64 ReplaceWnd
);
Parameters
| Parameter | Type | Description |
|---|---|---|
Id |
BSTR | Identifier for the component being created |
Html |
BSTR | The HTML content to be inserted |
ReplaceWnd |
__int64 | Window replacement parameter |
Return Value
Returns an HRESULT indicating success or failure of the operation.