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
I am overriding the WebView2 WndProc and adding a custom region with SetWindowRgn to the handle of WebView2 (HwndHost). My custom region cuts a hole in the win32 WebView2. This allows a WPF control to appear as if it were on top of the WebView2.
This currently does not work, however, if I add the Style "WS_CLIPCHILDREN " this works.
I have no idea of the consequences of adding this style.
I can say that the WindowsFormsHost has the style so am wondering if it would hurt to add it to this window.
Hey @darbid - This is a great catch. Most of our HWNDs and the Winforms control currently has that style, and it's just an oversight that WPF doesn't have it too. I've added this to our backlog and we'll get this fixed!
Using WPF and 1.0.790-prerelease to test this.
I am overriding the WebView2 WndProc and adding a custom region with SetWindowRgn to the handle of WebView2 (HwndHost). My custom region cuts a hole in the win32 WebView2. This allows a WPF control to appear as if it were on top of the WebView2.
This currently does not work, however, if I add the Style "WS_CLIPCHILDREN " this works.
I have no idea of the consequences of adding this style.
I can say that the WindowsFormsHost has the style so am wondering if it would hurt to add it to this window.
AB#31967907
The text was updated successfully, but these errors were encountered: