BCGControlBar Pro for MFC
CBCGPWebView2Ctrl

Detailed Description

The CBCGPWebView2Ctrl class implements the Microsoft Edge WebView2 support.

This control requires WebView2Loader.dll (Win32 or x64 version) located in the same folder as your executable or in the system path.

Inherits CWnd, and CBCGPCtrlPlaceHolderHelper.

Public Member Functions

 CanGoBackTells whether Go Back operation is available.
 
 CanGoForwardTells whether Go Forward operation is available.
 
 CreateCreates a WebView2 control.
 
 ExecuteScriptExecutes the script on the currently loaded page.
 
 GetOptionsReturns a reference to options relative to specific control.
 
 GetSourceReturns an HTML source of the currently loaded page.
 
 GetTitleReturns a title of the currently loaded page.
 
 GoBackNavigates to the previous item in the history list.
 
 GoForwardNavigates to the next item in the history list.
 
 GoHomeNavigates to the home page (specified by control's options - CBCGPWebView2CtrlOptions).
 
 NavigateNavigates to the resource identified by a URL.
 
 NavigateDocumentDisplay a specified HTML content.
 
 RefreshReloads the current page.
 
 StopStops opening a page.
 

Static Public Member Functions

 GetGlobalOptionsReturns a reference to options relative to all controls.