Category : webview2

I use WebView2 to create an integrated browser compatible with Edge. To construct my webview, I added four listeners who are called when we call the function ‘navigate2’. m_controlsWebView->add_SourceChanged(Microsoft::WRL::Callback<ICoreWebView2SourceChangedEventHandler>( this, &EdgeBrowser::OnWebViewSourceChanged) .Get(), &m_sourceChangedToken); m_controlsWebView->add_ContentLoading(Microsoft::WRL::Callback<ICoreWebView2ContentLoadingEventHandler>( this, &EdgeBrowser::OnWebViewContentLoading) .Get(), &m_contentLoadingToken); m_controlsWebView->add_HistoryChanged(Microsoft::WRL::Callback<ICoreWebView2HistoryChangedEventHandler>( this, &EdgeBrowser::OnWebViewHistoryChanged) .Get(), &m_historyChangedToken); m_controlsWebView->add_NavigationCompleted(Microsoft::WRL::Callback<ICoreWebView2NavigationCompletedEventHandler>( this, &EdgeBrowser::OnWebViewNavigationCompleted) .Get(), &m_navigationCompletedToken); Code of OnWebViewHistoryChanged : HRESULT EdgeBrowser::OnWebViewHistoryChanged(ICoreWebView2* sender, ..

Read more

MS Edge runtime: 94.0.992.31 Nuget package : Microsoft.Web.WebView2 1.0.992.28 We have two solutions : Managed C++ app and Wpf GUI library. In the Managed C++ we consume wpf’s views. Everything was OK while we were using old System.Windows.Controls.WebBrowser. No crashes. But, well, rendered HTML becomes more complex and harder to be properly rendered in old ..

Read more

I’ve a WIN32 application with a ‘.exe’ where I use the webView2 library with its different object (CreateCoreWebView2EnvironmentWithOption, get_corewebview2,…). I use also the "ImplementationLibrary" library in the application. I would like to test my application on another computer (with Windows 10 and system 64 bits) by copying all necessary dll’s. Which is the dll’s necessary ..

Read more

Good morning, I’ve an application WIN32. All the screen, all the windows and components are defined in file *.DLG. I followed different sample of Microsoft but I don’t think it answers to my needs. Here is the WIN32 component where I want to attach my WebView2 : CONTROL "POLICEMAP", FEIT_INTEGRATED_BROWSER, "Static", SS_BITMAP |SS_NOTIFY | BS_NOTIFY, ..

Read more

I used Visual Studio 2019. I’ve a WIN32 project. For this project, I used the Nuget manager to install Microsoft.Web.WebView2 (version 1.0.902.49) and Microsoft.Windows.ImplementationLibrary (version 1.0.210803.1) and in the project properties, here is the configuration : Since I changed the property "Platform Toolset" from Visual Studio 2015 to Visual Studio 2019, I’ve an error at ..

Read more