On Windows 10, it works with
SystemParametersInfo and SPI_GETWINARRANGING
So it should work on Windows 11 too...
How to know whether the snap applied in windows 11 windows. Is there any API.
Is there a method or any API to tell if snap is enabled or disabled in Windows 11? Please answer if there is any other way.
2 answers
Sort by: Most helpful
-
Castorix31 86,406 Reputation points
2022-04-27T07:17:11.28+00:00 -
Limitless Technology 39,746 Reputation points
2022-04-27T08:52:11.037+00:00 Hi there,
Currently, there is no API or Powershell command to find if the snap is enabled or disabled in Windows 11. If the app's window has the maximize caption button available, the system will automatically show snap layouts when a user hovers the mouse over the window's maximize button.
If your app's main window has the maximize caption button available but does not show snap layouts, it may be because you've customized your caption buttons or title bar in a way that prevents it.
Support snap layouts for desktop apps on Windows 11 https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-snap-layout-menu
---------------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept it as an answer–