Open Ichisich opened 2 years ago
I can't seem to find good information about this.
You documentation you send is for C++ and for win32 Apps - this however is WPF on C#.
Indeed, I searched and the documentation for WPF is quite lacking. WM_NCHITTEST messages get at least mentioned in the issue tracker of dotnet/wpf, but nothing helpful how to implement them.
WPF applications definitely send some kind of messages though. PowerToys titlebar(correct);
NEAV1E titlebar(wrong):
UWP applications for example often have a mixed "titlebar". Movies&TV (kinda):
related issue: https://github.com/dotnet/wpf/issues/4825
I guess also this could help: https://stackoverflow.com/questions/69797178/support-windows-11-snap-layout-in-wpf-app
After some further investigating it is an issue with WPF and MahApps.Metro/ControlzEx. So we have to wait for them to update their packages with the nescessary fixes.
Not sure if this issue still applies, as I updated MahApps.Metro
to a Pre-Release version which supports the Windows 11 snap layout and rounded corners. Maybe this fixed the WM_NCHITTEST
?
The titlebar is still wrong, but the buttonbox is now correctly classified.
Currently, NEAV1E lacks any distinction and reports every part of its GUI as
WM_NCHITTEST=1
(In a client area). Would be nice to have more distinctions, especiallytitle bar=2
,minimize button=8
,maximize button=9
andclose button=20
are often used in scripts and window-management tools.Documentation: https://docs.microsoft.com/en-us/windows/win32/inputdev/wm-nchittest