且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Windows 7 上保存和恢复 Aero Snap 位置

更新时间:2023-12-06 12:19:28

解决方法是调用 GetWindowRect() 来获取实际的窗口坐标并将它们复制到 WINDOWPLACEMENT 中的坏坐标上::rcNormalPosition.

The workaround is to call GetWindowRect() to get the actual window coordinates and copy them over the bad coordinates in WINDOWPLACEMENT::rcNormalPosition.