[Feature Request] Regarding `Frameless=True`
Currently, enabling Frameless=True leads to several issues, including but not limited to:
- Inability to resize the window
- Disappearance of the minimize animation
- Failure to restore the window by clicking the taskbar icon after minimizing
However, WinForms + WebView2 can achieve a nearly perfect frameless window experience. You can refer to this repository for a working example:
👉 https://github.com/XuanchenLin/WinFormedge
This library demonstrates how to build modern, borderless WinForms applications using HTML, CSS, and JavaScript via Microsoft WebView2—complete with features like draggable title bars (appRegion: "drag" in CSS/JS) and proper window management.
I’m wondering: Can pywebview achieve similar behavior on Windows?
I also have a working demo based on .NET Framework 4.7.2 that runs smoothly on Windows 10.
Sorry, my English is not good
I am also troubled by this issue
I used win32gui to fix the issue of failure to restore the window by clicking the taskbar icon after minimizing
import win32gui
import win32con
style = win32gui.GetWindowLong(hwnd, win32con.GWL_STYLE)
style = style | win32con.WS_MINIMIZEBOX
win32gui.SetWindowLong(hwnd, win32con.GWL_STYLE, style)
However, pywebview does not seem to provide an API for easily obtaining window handles
I have been trying for a long time but have not been able to fix the issue of Disappointment of the minimize animation