Solved

Getting external window Locations

Posted on 1998-08-10
3
132 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
Comment Utility
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
Comment Utility
and you can get code samples at:
http://www.mvps.org/vbnet/
0
 

Author Comment

by:sacrouch
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

772 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

9 Experts available now in Live!

Get 1:1 Help Now