> Win32 question: If I switch to my application from another app, how can I > detect which window from the previous application had input focus before > switching apps?
Check the Z-Order and get the parent application of the window that is below your window. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk