Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting external window Locations

Posted on 1998-08-10
3
Medium Priority
?
190 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 800 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

927 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