From a05855c492edf8caf7a131286e7b09546cab0285 Mon Sep 17 00:00:00 2001 From: Xu Date: Sat, 22 Jun 2024 20:58:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=98=8E=E7=A1=AE=E7=AA=97=E5=8F=A3=E5=B1=9E=E6=80=A7=E4=B8=AD?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E7=9A=84=E5=9D=90=E6=A0=87=E4=B8=8D=E5=8F=97?= =?UTF-8?q?=20DPI=20=E8=99=9A=E6=8B=9F=E5=8C=96=E5=BD=B1=E5=93=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/Interact with Magpie programally.md | 3 ++- ...345\274\217\344\270\216 Magpie \344\272\244\344\272\222.md" | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/Interact with Magpie programally.md b/docs/Interact with Magpie programally.md index 1158236b..d6f37e64 100644 --- a/docs/Interact with Magpie programally.md +++ b/docs/Interact with Magpie programally.md @@ -82,7 +82,8 @@ destRect.bottom = (LONG)(INT_PTR)GetProp(hwndScaling, L"Magpie.DestBottom"); ### Notes -These properties are only guaranteed to exist after the scaling window has completed its initialization. Therefore, it is advisable to check whether the scaling window is visible before retrieving these properties, especially when the window handle is obtained using the class name. +1. These properties are only guaranteed to exist after the scaling window has completed its initialization. Therefore, it is advisable to check whether the scaling window is visible before retrieving these properties, especially when the window handle is obtained using the class name. +2. The coordinates stored in these properties are not DPI-virtualized. To use them correctly, you need to set your application's DPI awareness level to Per-Monitor V2. For more details, please refer to [High DPI Desktop Application Development on Windows](https://learn.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows). ## How to Keep Magpie Scaling When Your Window Is in the Foreground diff --git "a/docs/\344\273\245\347\274\226\347\250\213\346\226\271\345\274\217\344\270\216 Magpie \344\272\244\344\272\222.md" "b/docs/\344\273\245\347\274\226\347\250\213\346\226\271\345\274\217\344\270\216 Magpie \344\272\244\344\272\222.md" index 33c0fc87..f3b403dd 100644 --- "a/docs/\344\273\245\347\274\226\347\250\213\346\226\271\345\274\217\344\270\216 Magpie \344\272\244\344\272\222.md" +++ "b/docs/\344\273\245\347\274\226\347\250\213\346\226\271\345\274\217\344\270\216 Magpie \344\272\244\344\272\222.md" @@ -82,7 +82,8 @@ destRect.bottom = (LONG)(INT_PTR)GetProp(hwndScaling, L"Magpie.DestBottom"); ### 注意事项 -这些属性只在缩放窗口初始化完成后才保证存在,因此建议检索属性前检查缩放窗口是否可见,尤其是当窗口句柄是使用类名获取到的。 +1. 这些属性只在缩放窗口初始化完成后才保证存在,因此建议检索属性前检查缩放窗口是否可见,尤其是当窗口句柄是使用类名获取到的。 +2. 这些属性中存储的坐标不受 DPI 虚拟化影响,你需要将程序的 DPI 感知级别设置为 Per-Monitor V2 才能正确使用它们。有关详细信息,请参阅 [High DPI Desktop Application Development on Windows](https://learn.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows)。 ## 如何使 Magpie 在你的窗口位于前台时保持缩放