Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
很容易获得屏幕上所有可见窗口的边界矩形。判断任何窗口是否具有标志性也很容易。
但是对于最小化的窗口,从 User32.GetWindowInfo.rcWindow 报告的 Top 和 Left 为 -32000。我查看了整个 API,找不到返回如果单击或切换到窗口将恢复到的边界的调用。
感谢您的任何指示。
查看 User32.GetWindowPlacement
对于 C/C++:
WINDOWPLACEMENT wp; ::ZeroMemory(&wp, sizeof(WINDOWPLACEMENT)); ::GetWindowPlacement(hWnd, &wp);