如何从Windows上的Windows API上的另一个应用程序获得应用程序宽度和高度

How do I get a an applications width and height from another application on Windows with windows APi

本文关键字:应用程序 Windows 高度 上的 API 另一个      更新时间:2023-10-16

说我打开了计算器。我想查询其宽度/高度和其他信息。

那是正确的系统调用/功能?

我问了Google机器,但没有骰子。

谢谢。

使用Findwindow,然后使用GetWindowRect。使用间谍 工具获取Findwindow中您需要的窗口类参数。