Home > Back-end >  How to acquire the visible window area
How to acquire the visible window area

Time:09-29

Use GetRandomRgn can obtain viewing area of the window, but, like QQ, thunderbolt such window cover on it, use the interface to get to the viewing area is the area of the window (QQ this window using the own UI engine, should be from already drawing window), now the problem is:
1. Whether there is any API interface, can get to the window of viewing area??

Think of a solution is: the enumeration of the current window, and then calculate the window is not coverage of the area, but also has a problem like this:
2. Two Windows of Z - Order sequence is how to judge? (for example: in the QQ window, our window in the middle, thunderbolt window under the most, then only need to compute is not part of QQ window override)

Hope to get your advice, thank you!

CodePudding user response:

There is no such apis

CodePudding user response:

reference 1st floor songhtao response:
there is no such API


I have a question: why the window is covered by QQ, GetRandomRgn access to or the entire area of the window?

CodePudding user response:

For the first problem, indeed there is no such https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/94a31c61-69a7-4576-9a06-c9c226f88b21/getrandomrgn-api-does-not-work-as-expected-in-windows-8? API interface Forum=windowscompatibility

I don't know the second problem is there a solution?

CodePudding user response:

The solution of the problem to find one for a second
https://social.msdn.microsoft.com/Forums/en-US/be484eb6-5af3-406c-b06e-4f274457d017/how-to-know-if-a-window-is-behind-other-window-? Forum=windowsaccessibilityandautomation

~ ~ can only seem to judge for yourself
  • Related