Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would it be possible for the WebView2's WPF window of class name "static" to have a WS_CLIPCHILDREN style? #1013

Closed
darbid opened this issue Mar 1, 2021 · 2 comments
Assignees
Labels
feature request feature request tracked We are tracking this work internally.

Comments

@darbid
Copy link

darbid commented Mar 1, 2021

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

@darbid darbid added the feature request feature request label Mar 1, 2021
@champnic champnic added the tracked We are tracking this work internally. label Mar 4, 2021
@champnic
Copy link
Member

champnic commented Mar 4, 2021

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!

@champnic
Copy link
Member

champnic commented Jun 5, 2021

This is fixed in 1.0.902-prerelease SDK. Thanks!

@champnic champnic closed this as completed Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request feature request tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

3 participants