0

I need to get the window handle for all windows that are both visible and not covered by other windows.

I can get all the window handles for non-minimized windows using User32 calls, but this returns windows that are behind other windows. I just want the ones that the user can actually see.

I suppose I could get the z-order of all windows, match that list against the 'visible' (ie. non-minimised) windows, get the rectangle bounds of each of those windows, and then work out which are covered by others... but there must be an easier way?

Sugrue
  • 3,629
  • 5
  • 35
  • 53

0 Answers0