Quote Originally Posted by tboygee View Post
The Win32 application in question has several complicated dialogs open simultaneously. What is the best way to determine which dialog window is on top, i.e. the window that has been clicked on (anywhere in the window) most recently?
I don't mean to sound flip, but why would you care?

I say this because unless you are trying to automate the app, having to determine which window is on top could be an indication of a design flaw.