automatically size open explorer window? (xp)

  • Thread starter Thread starter Mad Scientist Jr
  • Start date Start date
M

Mad Scientist Jr

has anyone done this from code?

i just want to automatically size all open and non-mimized windows to
the specified height/width (in twips?)

maybe include a utility that reports the height/width in twips or
whatever of the topmost open non-mimized window
 
Mad,

Twips was a one time VB6 idea.

It is again pixels however at least I don't understand what you want to do
automaticly to what height?.

Cor
 
Mad Scientist Jr said:
i just want to automatically size all open and non-mimized windows to
the specified height/width (in twips?)

P/invoke: 'EnumWindows' + 'MoveWindow'.
 
Cor Ligthert said:
Twips was a one time VB6 idea.

Well, twips were actually a good idea because they allowed a certain level
of device-intependence...
 
Herfried,
Well, twips were actually a good idea because they allowed a certain level
of device-intependence...
What did I write this time wrong about VB6 in your opinion.

:-)))

Cor
 
Thanks for your replies.

Can you give a concrete example of below? I don't care if it uses
twips, pixels, whatever. Just some height/width unit.

I am looking for something to do something like this

1. minimize all windows except the one you want the size of

2. run "Get Size" utility, which has code like:
myHeight = fnGetHeightOfTopWindow
myWidth = fnGetWidthOfTopWindow
MsgBox "height=" & myheight & vbcrlf & "width=" & mywidth

3. minimize all windows except the ones you want resized

4. run "Set size" utility - it prompts for height/width, you type the
numbers, click OK, and it sets the height/width of all open windows to
that
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top