Creates an Internet Explorer WebBrowser control for displaying HTML content.
Takes x (Int), y (Int), width (Int), height (Int), and parent (Int).
Returns gizmo ID, or 0 if parent not found or creation failed.
BGI GUI
Parameters & Returns
Parameters
xInt
yInt
widthInt
heightInt
parentInt
Returns
Int
Quick Summary
Creates an Internet Explorer WebBrowser control for displaying HTML content.
Takes x (Int), y (Int), width (Int), height (Int), and parent (Int).
Returns gizmo ID, or 0 if parent not found or creation failed.
Technical Exegesis...
Creates an Internet Explorer WebBrowser control for displaying HTML content. Searches gizmoMap for parent window ID. Increments gizmoIDCount for unique ID. Uses GetActualParentHWND for scroll panel support. Creates ATL::CAxWindow host window with WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS. Calls CreateControl(L"Shell.Explorer.2") to instantiate Internet Explorer ActiveX control. Queries for IWebBrowser2 interface via QueryControl. Sets put_Silent(VARIANT_TRUE) to disable script error dialogs.
Creates an Internet Explorer WebBrowser control for displaying HTML content. Searches gizmoMap for parent window ID. Increments gizmoIDCount for unique ID. Uses GetActualParentHWND for scroll panel support. Creates ATL::CAxWindow host window with WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS. Calls CreateControl(L"Shell.Explorer.2") to instantiate Internet Explorer ActiveX control. Queries for IWebBrowser2 interface via QueryControl. Sets put_Silent(VARIANT_TRUE) to disable script error dialogs. Stores IWebBrowser2* in webBrowserMap. Creates CGizmo with GIZMO_HTMLVIEW type, adds to gizmoMap. Returns gizmo ID, or 0 if parent not found or creation failed.
This function creates an Internet Explorer-based HTML viewer (NOT WebView2 despite category name). Uses ATL (Active Template Library) to host ActiveX control "Shell.Explorer.2" which is the IE WebBrowser component. IWebBrowser2 is the COM interface for browser control. Silent mode prevents script error popups. The control supports HTML/CSS/JavaScript but uses legacy IE11 rendering engine (no modern web features). ATL::CAxWindow handles ActiveX hosting infrastructure. webBrowserMap stores IWebBrowser2* pointers for later operations. Common operations: bgiSetHTMLContent for inline HTML, bgiLoadHTMLURL for web pages, bgiExecuteHTMLScript for JavaScript execution. Control automatically resizes with parent window. Use bgiHTMLGoBack/Forward for navigation history, bgiHTMLRefresh to reload.