xy-coordinates and widths of all visible windows

JumpyNET

Centurion
Joined
Apr 4, 2005
Messages
196
How do I find out the xy-coordinates and widths of all visible windows?

I'm making a screenmate incase your wondering why I'm asking such a question.

PS: I'm using VB2005 and I use Windows XP.
 
All windows on the screen? Use the Windows API. There is a function do get the desktop window. Then there are functions to enumerate child windows of a window. Since the desktop window is the ultimate parent of all windows, a recursive enumeration will grab every window that exists. There are function to get information about windows too.

You just need to do some research on Windows API functions concerning windows. A google search and a Windows API utility (such as the API Viewer included with VB6, or the even better, free "ApiViewer 2004").
 
Back
Top