Link to home
Start Free TrialLog in
Avatar of sacrouch
sacrouch

asked on

Getting external window Locations

I want to make an application similar to the show desktop in IE4.  To do this I need to know

1) how to get the location of every window that is visible on screen.

2) How to minimize and restore these windows.
Avatar of cymbolic
cymbolic

There is a way to do this using the Win32 API and windows messaging.  A sample project is available on the CD ROM from Daniel Appleman's "Visual Basic 5.0 Programmer's Guide to the Win 32 API'

The sample project proceeds through the use of the EnumWindows API and the SendMessage API calls.    You would be well advised to get the book.  It has substantial additional sample code, as well as the complete text on CD ROM. Unlike most rehashes of help systems, this book is more than worth it's cost.  
ASKER CERTIFIED SOLUTION
Avatar of cymbolic
cymbolic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sacrouch

ASKER

Had to scour the site to find the code, but it was exactly what I was after, and it gave me a couple of new ideas.