tags:

views:

11

answers:

1

Hi all,

I am trying to write a program that gets the windows that are displayed on the screen. Something like screen.getActiveWindow().size would be cool, but it only addresses the active window.

I am looking for the sizes of all windows on the screen, as well as event information when they are resized, cover each other up.

Am I just daydreaming or is there a way to get this information on windows?

A: 

You need to use EnumWindow Fuction go get the hwnd of each window then user EnumChildWindow to get the child windows and finally get windowinfo the clr doesn't have all of the necessary function to do low level window manipulation unless its been added in 4.0 and I haven't noticed.

rerun