3

I'm looking for the cleanest way to get all open windows and have access to moving/resizing them. I'd like to be able to get their current locations and move them where I'd like.

I want access to all windows, not just top level ones.

Thanks

mamontazeri
  • 319
  • 1
  • 3
  • 6
  • You understand the most controls are windows themselves, right? – Ignacio Vazquez-Abrams Apr 24 '11 at 01:10
  • 1
    Sorry, I don't understand your sentence. To clarify: I want my application to resize other windows (i.e, Chrome, Word, etc...) – mamontazeri Apr 24 '11 at 01:18
  • What Ignacio Vazquez-Abrams meant was that you don't actually want to resize every single window on the system, because it would also resize dialogs, buttons, text boxes, toolbars, etc. What you really want is access to only top-level windows. Better yet, you want only top-level windows that do not have owners. – In silico Apr 24 '11 at 01:49

1 Answers1

2

Here is an example that shows how to do several different operations on a specific window, including how to move it to another location.

Community
  • 1
  • 1
karlphillip
  • 92,053
  • 36
  • 243
  • 426