>I am using code nearly identical to that found on
http://www.ml-consult.co.uk/foxst-11.htm (using api calls to GetWindow and GetWindowText ) to iterate through other open applications and minimize them so that only my form is in front of the user.
>
>This works.
>
>Only problem is, it works TOO well. It also minimizes other stuff, like DDE window processes that were invisible before and now I have these little minimized items in the task bar.
>
>Is there a way I can detect whether the Windows I am minimizing are only those which are already visible?
See
http://msdn2.microsoft.com/en-us/library/ms633530.aspx for IsWindowVisible()
This one
http://www.news2news.com/vfp/?example=27&function=36 seems to give you what you want.
If it's not broken, fix it until it is.
My Blog