ICoreWebView2Environment10

Undocumented in source.

Members

Functions

CreateCoreWebView2CompositionControllerWithOptions
HRESULT CreateCoreWebView2CompositionControllerWithOptions(HWND parentWindow, ICoreWebView2ControllerOptions options, ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler handler)

Create a new WebView in visual hosting mode with options.

CreateCoreWebView2ControllerOptions
HRESULT CreateCoreWebView2ControllerOptions(ICoreWebView2ControllerOptions* options)

Create a new ICoreWebView2ControllerOptions to be passed as a parameter of CreateCoreWebView2ControllerWithOptions and CreateCoreWebView2CompositionControllerWithOptions. The 'options' is settable and in it the default value for profile name is the empty string, and the default value for IsInPrivateModeEnabled is false. Also the profile name can be reused.

CreateCoreWebView2ControllerWithOptions
HRESULT CreateCoreWebView2ControllerWithOptions(HWND parentWindow, ICoreWebView2ControllerOptions options, ICoreWebView2CreateCoreWebView2ControllerCompletedHandler handler)

Create a new WebView with options.

Inherited Members

From ICoreWebView2Environment9

CreateContextMenuItem
HRESULT CreateContextMenuItem(LPCWSTR label, IStream* iconStream, COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND kind, ICoreWebView2ContextMenuItem* item)

Create a custom ContextMenuItem object to insert into the WebView context menu. CoreWebView2 will rewind the icon stream before decoding. There is a limit of 1000 active custom context menu items at a given time. Attempting to create more before deleting existing ones will fail with ERROR_NOT_ENOUGH_QUOTA. It is recommended to reuse ContextMenuItems across ContextMenuRequested events for performance. The returned ContextMenuItem object's IsEnabled property will default to TRUE and IsChecked property will default to FALSE. A CommandId will be assigned to the ContextMenuItem object that's unique across active custom context menu items, but command ID values of deleted ContextMenuItems can be reassigned.

Meta