Solved

Getting external window Locations

Posted on 1998-08-10
3
142 Views
Last Modified: 2012-05-04
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.
0
Comment
Question by:sacrouch
  • 2
3 Comments
 
LVL 9

Expert Comment

by:cymbolic
ID: 1468418
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.  
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 200 total points
ID: 1468419
and you can get code samples at:
http://www.mvps.org/vbnet/
0
 

Author Comment

by:sacrouch
ID: 1468420
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.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now