bgiSetHTMLContent

Sets the HTML content of an HTMLView control directly from a string. Takes htmlViewID (Int) and htmlContent (String). Returns nothing.

BGI GUI

Parameters & Returns

Parameters

htmlViewID Int
htmlContent String

Returns

Void

Quick Summary

Sets the HTML content of an HTMLView control directly from a string. Takes htmlViewID (Int) and htmlContent (String). Returns nothing.

Technical Exegesis...

Sets the HTML content of an HTMLView control directly from a string. Searches webBrowserMap for htmlViewID. If found, gets IWebBrowser2* interface. Navigates to "about:blank" to create empty document. Sleeps 100ms to allow document initialization. Gets IDispatch via get_Document(), then queries for IHTMLDocument2 interface. Converts UTF-8 htmlContent string to BSTR using MultiByteToWideChar. Creates SAFEARRAY with SafeArrayCreateVector(VT_VARIANT, 0, 1). Stores BSTR in array element.

Example

Example.bam
; No example implemented yet