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.
画面に表示されているすべてのウィンドウの外接する長方形を簡単に取得できます。また、ウィンドウが象徴的であるかどうかを見分けるのも簡単です。
ただし、最小化されたウィンドウの場合、TopとLeftはUser32.GetWindowInfo.rcWindowから-32000として報告されます。APIをすべて調べましたが、ウィンドウがクリックまたは切り替えられた場合にウィンドウが復元される境界を返す呼び出しが見つかりません。
ポインタをありがとう。
User32.GetWindowPlacementをチェックしてください
C / C ++の場合:
WINDOWPLACEMENT wp; ::ZeroMemory(&wp, sizeof(WINDOWPLACEMENT)); ::GetWindowPlacement(hWnd, &wp);