Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows11 获取窗口位置和窗口大小错误 #143

Open
ningnao opened this issue Aug 18, 2024 · 2 comments
Open

Windows11 获取窗口位置和窗口大小错误 #143

ningnao opened this issue Aug 18, 2024 · 2 comments

Comments

@ningnao
Copy link

ningnao commented Aug 18, 2024

屏幕分辨率 1920*1080 缩放 125% 最大化窗口

Window: "Windows 资源管理器" "rust" (-9, -9, 1938, 1038) (false, true)

截出来的图四周也有9个像素的黑边

看起来是因为将窗口阴影也计算在其中了
https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-getwindowrect

@nashaofu
Copy link
Owner

升级最新版本试试

@ningnao
Copy link
Author

ningnao commented Aug 21, 2024

资源管理器、任务管理器 y轴坐标 和 高度 仍然不准确

Window: "" "任务管理器" (0, -9, 1920, 1029) (false, true)
Window: "Windows 资源管理器" "test" (0, -9, 1920, 1029) (false, true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants