Reloads the current page in the HTMLView control from its original source.
Takes htmlViewID (Int).
Returns nothing.
BGI GUI
Parameters & Returns
Parameters
htmlViewIDInt
Returns
Void
Quick Summary
Reloads the current page in the HTMLView control from its original source.
Takes htmlViewID (Int).
Returns nothing.
Technical Exegesis...
Reloads the current page in the HTMLView control from its original source. Searches webBrowserMap for htmlViewID. If found, gets IWebBrowser2* interface. Calls pBrowser->Refresh() to reload current document. No return value.
This function mimics browser's refresh/reload button functionality. Refresh() reloads the current page from its original source. For web URLs (http/https), re-fetches from server (may use cache depending on HTTP headers). For local files (file:///), re-reads from disk.
Reloads the current page in the HTMLView control from its original source. Searches webBrowserMap for htmlViewID. If found, gets IWebBrowser2* interface. Calls pBrowser->Refresh() to reload current document. No return value.
This function mimics browser's refresh/reload button functionality. Refresh() reloads the current page from its original source. For web URLs (http/https), re-fetches from server (may use cache depending on HTTP headers). For local files (file:///), re-reads from disk. For content loaded via bgiSetHTMLContent, reloads the about:blank page (NOT the original HTML content - content is lost). Refresh() is asynchronous - returns before reload completes. Dynamic content/JavaScript state is reset (page re-initializes from scratch). Form data is lost unless cached by browser. Use cases: update web page with server changes, reload modified local HTML file, reset page state. Does not reload from cache by default (behavior depends on browser settings and HTTP cache headers). Common pattern: provide refresh button in UI, call bgiHTMLRefresh on user click.