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

The WebView2APISample program sometimes fails to restore the visibility of the webview correctly. #221

Open
yzy opened this issue Oct 23, 2023 · 0 comments

Comments

@yzy
Copy link

yzy commented Oct 23, 2023

Description:
When the sample application window is minimized after being maximized, the bug will reoccur. At this point, if you click on the taskbar icon or switch windows to restore the window to the foreground, the webview will still be invisible unless the window is restored from the maximized state.

Reason:
There is an error in the handling branch of the WM_SIZE message in the ViewComponent::HandleWindowMessage method. The related code only checks for the SIZE_RESTORED message, but in the scenario described above, the window will receive a SIZE_MAXIMIZED message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant