Help Center›AfxNova
WebView
164 entries across 2 topics.
Topics
All entries
CWebView2 107
AddAcceleratorKeyPressedAdds an event handler for the AcceleratorKeyPressed event.AddContainsFullScreenElementChangedAdds an event handler for the AcceleratorKeyPressed event.AddContentLoadingAdd an event handler for the ContentLoading event.AddDocumentTitleChangedAdd an event handler for the DocumentTitleChanged event.AddFrameNavigationCompletedAddFrameNavigationStartingAdd an event handler for the FrameNavigationStarting event.AddGotFocusAdds an event handler for the GotFocus event.AddHistoryChangedAdd an event handler for the HistoryChanged event.AddHostObjectToScriptAdd the provided host object to script running in the WebView with the specified name.AddLostFocusAdds an event handler for the LostFocus event.AddMoveFocusRequestedAdds an event handler for the MoveFocusRequested event.AddNavigationCompletedAdd an event handler for the NavigationCompleted event.AddNavigationStartingAdd an event handler for the NavigationStarting event.AddNewWindowRequestedAdd an event handler for the NewWindowRequested event.AddPermissionRequestedAdd an event handler for the PermissionRequested event.AddProcessFailedAdd an event handler for the ProcessFailed event.AddScriptDialogOpeningAdd an event handler for the ScriptDialogOpening event.AddScriptToExecuteOnDocumentCreatedAdd the provided JavaScript to a list of scripts that should be run after the global object has been created, but before the HTML document has been parsed and before any other script included by the HTML document is run.AddSourceChangedAdd an event handler for the SourceChanged event.AddWebMessageReceivedAdd an event handler for the WebMessageReceived event.AddWebResourceRequestedAdd an event handler for the WebResourceRequested event.AddWebResourceRequestedFilterThis method is deprecated and does not behave as expected for iframes.AddWindowCloseRequestedAdd an event handler for the WindowCloseRequested event.AddZoomFactorChangedAdds an event handler for the ZoomFactorChanged event.AreDefaultContextMenusEnabledDetermines whether the default context menus are shown to the user in WebView.AreDefaultScriptDialogsEnabledDetermines whether WebView renders the default JavaScript dialog box.AreDevToolsEnabledDetermines whether the user is able to use the context menu or keyboard shortcuts to open the DevTools window.AreHostObjectsAllowedDetermines whether host objects are accessible from the page in WebView.CallDevToolsProtocolMethodRuns an asynchronous **DevToolsProtocol** method.CanGoBackTRUE if the WebView is able to navigate to the previous page in the navigation history.CanGoForwardTRUE if the WebView is able to navigate to a next page in the navigation history.CapturePreviewCapture an image of what WebView is displaying.CloseCloses the WebView and cleans up the underlying browser instance.ConstructorCreates an instance of the `CWebView2`class.CWebView2CreateCoreWebView2ControllerCompletedHandlerImplementation of the ICoreWebView2CreateCoreWebView2ControllerCompletedHandler callback interface.CWebView2CreateCoreWebView2EnvironmentCompletedHandlerImplementation of the ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler callback interface.ExecuteScriptRun JavaScript code from the javascript parameter in the current top-level document rendered in the WebView.GetBoundsGets the WebView bounds.GetBrowserProcessIdThe process ID of the browser process that hosts the WebView.GetBrowserVersionGetContainsFullScreenElementTRUE if the WebView is able to navigate to a next page in the navigation history.GetControllerPtrReturns a raw pointer to the **Afx_ICoreWebView2Controller** interface.GetCoreWebViewReturns an addref'ed pointer to the **Afx_ICoreWebView2** interface.GetCoreWebView2GetDevToolsProtocolEventReceiverGet a DevTools Protocol event receiver that allows you to subscribe to a DevTools Protocol event.GetEnvironmentPtrReturns a raw pointer to the **Afx_ICoreWebView2Environment** interface.GetErrorInfoReturns a localized description of the specified error code.GetHWndGetIsVisibleThe **IsVisible** property determines whether to show or hide the WebView2.GetLastResultReturns the last result code.GetParentWindowThe parent window provided by the app that this WebView is using to render content.GetSettingsGets a pointer to the **ICoreWebView2Settings** interface.GetSourceThe URI of the current top level document.GetTopLevelWindowGetWebViewPtrReturns a raw pointer to the **Afx_ICoreWebView2** interface.GetZoomFactorThe zoom factor for the WebView.GoBackNavigates the WebView to the previous page in the navigation history.GoForwardNavigates the WebView to the next page in the navigation history.InvokeIsBuiltInErrorPageEnabledDetermines whether to disable built in error page for navigation failure and render process failure.IsReadyChekcs if `WebView2` is ready to be used..IsScriptEnabledDetermines whether running JavaScript is enabled in all future navigations in the WebView.IsStatusBarEnabledDetermines whether the status bar is displayed.IsWebMessageEnabledDetermines whether communication from the host to the top-level HTML document of the WebView is allowed.IsZoomControlEnabledDetermines whether the user is able to impact the zoom of the WebView.LoadFileAsJSInlineScriptLoadImageAsDataURLLoadImageAsUint8ArrayMoveFocusMoves focus into WebView.NavigateCause a navigation of the top-level document to run to the specified URI.NavigateToStringInitiates a navigation to htmlContent as source HTML of a new document.NotifyParentWindowPositionChangedOpenDevToolsWindowOpens the DevTools window for the current document in the WebView.PostWebMessageAsJsonPostWebMessageAsStringPosts a message that is a simple string rather than a JSON string representation of a JavaScript object.ReloadReload the current page.RemoveAcceleratorKeyPressedRemoves an event handler previously added with AddAcceleratorKeyPressed.RemoveContainsFullScreenElementChangedRemove an event handler previously added with AddContainsFullScreenElementChanged.RemoveContentLoadingRemove an event handler previously added with AddContentLoading.RemoveDocumentTitleChangedRemove an event handler previously added with AddDocumentTitleChanged.RemoveFrameNavigationCompletedRemoveFrameNavigationStartingRemove an event handler previously added with AddFrameNavigationStarting.RemoveGotFocusRemoves an event handler previously added with AddGotFocus.RemoveHistoryChangedRemove an event handler previously added with AddHistoryChanged.RemoveHostObjectFromScriptRemoveHostObjectToScriptRemove the host object specified by the name so that it is no longer accessible from JavaScript code in the WebView.RemoveLostFocusRemoves an event handler previously added with AddLostFocus.RemoveMoveFocusRequestedRemoveNavigationCompletedRemove an event handler previously added with AddNavigationCompleted.RemoveNavigationStartingRemove an event handler previously added with AddNavigationStarting.RemoveNewWindowRequestedRemove an event handler previously added with AddNewWindowRequested.RemovePermissionRequestedRemove an event handler previously added with AddPermissionRequested.RemoveProcessFailedRemove an event handler previously added with AddProcessFailed.RemoveScriptDialogOpeningRemove an event handler previously added with AddScriptDialogOpening.RemoveScriptToExecuteOnDocumentCreatedRemove the corresponding JavaScript added using AddScriptToExecuteOnDocumentCreated with the specified script ID.RemoveSourceChangedRemove an event handler previously added with AddSourceChanged.RemoveWebMessageReceivedRemove an event handler previously added with AddWebMessageReceived.RemoveWebResourceRequestedRemove an event handler previously added with AddWebResourceRequested.RemoveWebResourceRequestedFilterRemove an event handler previously added with AddWebResourceRequestedFilter.RemoveWindowCloseRequestedRemove an event handler previously added with AddWindowCloseRequested.RemoveZoomFactorChangedRemove an event handler previously added with AddZoomFactorChanged.SetBoundsSets the **Bounds** property.SetIsVisibleSets the IsVisible property.SetParentWindowSets the parent window for the WebView.SetResultSets the last result code.SetZoomFactorSets the **ZoomFactor** property.StopStop all navigations and pending resource fetches. Does not stop scripts.
CWebView2AcceleratorKeyPressedEventHandler 1
CWebView2AddCapturePreviewCompletedHandler 1
CWebView2AddScriptToExecuteOnDocumentCreatedCompleteHandler 1
CWebView2CallDevToolsProtocolMethodCompletedHandler 1
CWebView2ContainsFullScreenElementChangedEventHandler 1
CWebView2ContentLoadingEventHandler 1
CWebView2CreateCoreWebView2ControllerCompletedHandler 1
CWebView2CreateCoreWebView2ControllerCompletedHandlerInternal 1
CWebView2CreateCoreWebView2EnvironmentCompletedHandler 1
CWebView2CreateCoreWebView2EnvironmentCompletedHandlerInternal 1
CWebView2DevToolsProtocolEventReceivedEventHandler 1
CWebView2DocumentTitleChangedEventHandler 1
CWebView2ExecuteScriptCompletedHandler 1
CWebView2FocusChangedEventHandler 1
CWebView2HistoryChangedEventHandler 1
CWebView2MoveFocusRequestedEventHandler 1
CWebView2NavigationCompletedEventHandler 1
CWebView2NavigationStartingdEventHandler 1
CWebView2NewBrowserVersionAvailableEventHandler 1
CWebView2NewWindowRequestedEventHandler 1
CWebView2NewWindowRequestedEventHandlerInternal 1
CWebView2PermissionRequestedEventHandler 1
CWebView2ProcessFailedEventHandler 1
CWebView2ScriptDialogOpeningEventHandler 1
CWebView2SourceChangedEventHandler 1
CWebView2WebMessageReceivedEventHandler 1
CWebView2WebMessageReceivedEventHandlerInternal 1
CWebView2WebResourceRequestedEventHandler 1
CWebView2WindowCloseRequestedEventHandler 1
CWebView2ZoomFactorChangedEventHandler 1
JsonReader 1
JsonWriter 19
BeginArrayEmits “[”, increases depth, pushes a “first item” flag, and inserts newline+indent.BeginObjectStructures control with inline suppression.ClearResets the buffer, depth, and firstItemStack to an empty state.EndArrayCloses the array with proper dedent and “]”, then pops the stack.EndObjectCloses the object with proper dedent and “}”.NameWrites a JSON object key with correct escaping, colon, and spacing.ReadNextReads the next token.ReadNumberParses a JSON number.ReadStringReads a string by slicing the raw JSON string and unquoting via **JSonUnquoteW**.SetIndentSizeControl spaces per indent level.SetInlineThresholdControl spaces per indent level.SkipWhitespaceAdvances the position past spaces, tabs, CR and LF.ToBStringReturns the current buffer as BSTRING (UTF-16).ToUtf8Returns the current buffer as a utf-8 string.ValueEmits a JSON string with escaping for quotes, backslashes, control chars, and nonprintables via \uXXXX.ValueBoolEmits a boolean true or false value.ValueNullEmits a literal null, respecting comma/indent rules.ValueSafeArraySerializes a 1‑D SAFEARRAY as JSON array with smart inline vs pretty layout.ValueVariantSerializes a `DVARIANT` using JSON‑compatible mapping.
Procedures 7
AfxCWebView2PtrReturns a raw pointer to the **CWebView** class.AfxSaveTempHtmlFileSaves the contents of an html script to a temporary file.CompareBrowserVersionsGet the browser version info including channel name if it is not the WebView2 Runtime.CreateCoreWebView2EnvironmentCreates an evergreen WebView2 Environment using the installed Edge version.CreateCoreWebView2EnvironmentWithDetailsCreateCoreWebView2EnvironmentWithOptionsCreates a WebView2 environment with a custom version of WebView2 Runtime, user data folder, and with or without additional options.GetAvailableCoreWebView2BrowserVersionStringGet the browser version info including channel name if it is not the WebView2 Runtime.