CHTMLDoc::CreateComponent
Description
Inserts HTML. Used to insert regular HTML elements or WebComponents with custom elements.
Syntax
void CreateComponent(std::wstring Id, std::wstring Html, INT64 ReplaceWnd);
Parameters
| Parameter | Type | Description |
|---|---|---|
Id |
std::wstring | Identifier assigned to the primary element of the inserted HTML content |
Html |
std::wstring | HTML snippet to be inserted |
ReplaceWnd |
INT64 | Window handle to be replaced and associated with the new component |
Return Value
None (void).
Remarks
When the ReplaceWnd parameter contains a non-zero value that references a valid window handle, the positioning behavior of the main element will mirror the positioning of the specified window, creating a simulated embedding effect.