Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • Leaders
Posted

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").

[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...