CHTMLDoc::CreateComponent Method

Inserts an HTML. Used to insert regular HTML elements or WebComponents with custom elements.

C++

void CreateComponent(std::wstring Id, std::wstring Html, INT64 ReplaceWnd);

Parameters

Parameters

Description

std::wstring Id

ID to assign to the main element of the HTML to be inserted

std::wstring Html

HTML snippet

INT64 ReplaceWnd

Wnd to be replaced and tied to

Remarks

When ReplaceWnd is <> 0 and points to a valid window handle, the positioning of the main element will follow the Wnd positioning, simulating an embedding.

Group

CHTMLDoc Methods