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:
You can change the view:
After the exchange, it will show view 2 with browser 2:
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.