dcube9 / WebView2BrowserMFC_MDI

Sample to use WebView2 with MFC MDI Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebView2BrowserMFC_MDI

Sample to use Microsoft Edge WebView2 control with MFC MDI Application

The program is an MDI, it starts and creates a new view, to change the views and show 2 working browsers.

If you add a new document, it will keep the views and will delete and create new browsers. On the console you can observe the operation.

Opening the program it will show view 1 with browser 1:

WebView2Browser

You can change the view:

WebView2Browser

After the exchange, it will show view 2 with browser 2:

WebView2Browser

if you create a new document, you will see that the browser will delete the current ones and will create new ones, maintaining the views.

In the example we have 2 classes to show the use of BrowserWindow using win32 and the class BrowserWindowEdge using CWnd of MFC.

This screen is my production program made in MFC using an BrowserWindowEdge class, I will start testing to see the behavior. WebView2Browser

About

Sample to use WebView2 with MFC MDI Application


Languages

Language:C++ 90.6%Language:HTML 5.3%Language:C 2.8%Language:JavaScript 1.3%