Apparently windows will send a WM_WINDOWPOSCHANGING when your window moves/resizes/swaps z order. Combine this with GetTopWindow
and GetNextWindow
to work out what the current order of the windows are, and you should be able to work out where all the windows are in your app. 825595 has the details about those two API calls. 798295 has more info about GetNextWindow
.
edit even though this is already accepted...
And, for anyone finding this via google, 932988 has info about how to capture these messages using WndProc
. I hate to leave a question not fully answered :-)