microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.73k stars 309 forks source link

Size of win32 title bars are different to UWP apps #180

Open Poopooracoocoo opened 3 years ago

Poopooracoocoo commented 3 years ago

Proposal: Size of win32 title bars are different to UWP apps

Summary

see https://github.com/microsoft/PowerToys/issues/6409

Rationale

Scope

Capability Priority
This proposal will allow developers to accomplish W Must
This proposal will allow end users to accomplish X Should
This proposal will allow developers to accomplish Y Could
This proposal will allow end users to accomplish Z Won't

Important Notes

Open Questions

Poopooracoocoo commented 3 years ago

157

Poopooracoocoo commented 3 years ago

and please don't say "just use winui, msix and uwp". it's a meme at this point. the new Microsoft Emulator isn't a UWP or WinUI app. The Xbox app just stopped using MSIX. Skype ditched UWP and WinUI. Teams and Edge are just Chromium. The list goes on and on.

AzAgarampur commented 3 years ago

When a Window is maximized, the non-client area will hang over the outside of the screen. Class non-ApplicationFrameHost windows have their non-client area hang over, which makes the title bar smaller. ApplicationFrameHost windows paint the title bar by itself. When maximized, it accounts for the offset hang and shifts the painting area so it can paint a full sized title bar.

Just make ApplicationFrameHost windows not account for the overhang when painting the title bar when maximized and the two should look the same.