Hi,
I am building an application that is similar to spy++. I want the user
to be able to click on a 'window' (textbox/combo/etc) and have it
highlighted.
BUT... the window they click on may share common coordinates with
another window, so how do i find the topmost visible window, given a
toplevel window handle and some x and y coordinates?
Cheers in advance,
James.
Stoitcho Goutsev (100) - 22 Jan 2007 21:25 GMT
pigeonrandle,
There are bunch of API methods that can be used for that:
WindowFromPoint
ChildWindowFromPoint
ChildWindowFromPointEx
RealChildWindowFromPoint
BTW there is only one window that contains a given point and this is the
window on top according to the z order

Signature
HTH
Stoitcho Goutsev (100)
> Hi,
> I am building an application that is similar to spy++. I want the user
[quoted text clipped - 7 lines]
> Cheers in advance,
> James.