-
Notifications
You must be signed in to change notification settings - Fork 909
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
Allow returning HITMAXBUTTON
from WM_NCHITTEST
for Windows snap layout support
#3884
Comments
I don't think there is something similar for any other platform, so it's probably outside the scope of |
Fair enough on this being platform specific, but it is a very common issue for people trying to make fully featured desktop windows apps. I might be missing something, but In my mind this would be similar to |
Thanks for the suggestion! I'll give it a try |
Yeah subclassing may be the best option here, since this is effectively "add a new function to a window handle". I would definitely be open to making subclassing easier, either through |
Description
In Windows 11, when you hover over the maximize button a window is displayed that shows various layouts you can "snap" the window to. When drawing a custom titlebar, these options don't work unless you return
HTMAXBUTTON
from theWM_NCHITTEST
handler.As far as I can tell this isn't possible in winit at the moment, and best I can figure there isn't a work around available.
Relevant platforms
Windows
The text was updated successfully, but these errors were encountered: