You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It doesn't work. I realised this was because GetParentWindow() is going to be WebView2 Child Container. So I tried two things:
1/ GetParentWindow()->GetParent()>GetParent()->PostMessage ...
The main dialog code is intercepted. But the moment the AfxMessageBox call happens in main dialog the app appears to freeze. I can see no popup. The app feels it is running this but I can't respond to the popup message box.
2/ When my WV2 is created, and before setting up the handlers, I pass it my WebView2 Child Container pointer. Then in the event handler it uses that pointer. Then, in WebView2 Child container I catch that, and post (or send) up the chain to CDialog. The result is the same, the moment a AfxMessageBox is encounter, app is freezing.
I have spent all afternoon and evening trying to get around this. The basic scenario is fine.
My latter scenario is a dialog, which has a TabCtrl, which has 3 tabs, each with a WebView2 Child Container, housing a WebView2.
I appreciate help. Thanks.
Win32.
The text was updated successfully, but these errors were encountered:
I am confused.
Take this handler snippet:
Now, if my context is:
CDialog > WebView2 > Right-click > Refresh
Works. GetParentWindow() is the pointer to CDialog.
Now, if my context is:
CDialog > TabCtrl > WebView2 Child Container > WebView2 > Right-click > Refresh
It doesn't work. I realised this was because GetParentWindow() is going to be WebView2 Child Container. So I tried two things:
1/ GetParentWindow()->GetParent()>GetParent()->PostMessage ...
The main dialog code is intercepted. But the moment the AfxMessageBox call happens in main dialog the app appears to freeze. I can see no popup. The app feels it is running this but I can't respond to the popup message box.
2/ When my WV2 is created, and before setting up the handlers, I pass it my WebView2 Child Container pointer. Then in the event handler it uses that pointer. Then, in WebView2 Child container I catch that, and post (or send) up the chain to CDialog. The result is the same, the moment a AfxMessageBox is encounter, app is freezing.
I have spent all afternoon and evening trying to get around this. The basic scenario is fine.
My latter scenario is a dialog, which has a TabCtrl, which has 3 tabs, each with a WebView2 Child Container, housing a WebView2.
I appreciate help. Thanks.
Win32.
The text was updated successfully, but these errors were encountered: