467,119 Members | 1,171 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,119 developers. It's quick & easy.

automatically size open explorer window? (xp)

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

Nov 30 '05 #1
  • viewed: 2089
Share:
5 Replies
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
Nov 30 '05 #2
"Mad Scientist Jr" <us*************@yahoo.com> schrieb:
i just want to automatically size all open and non-mimized windows to
the specified height/width (in twips?)


P/invoke: 'EnumWindows' + 'MoveWindow'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 30 '05 #3
"Cor Ligthert [MVP]" <no************@planet.nl> schrieb:
Twips was a one time VB6 idea.


Well, twips were actually a good idea because they allowed a certain level
of device-intependence...

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 30 '05 #4
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

Herfried K. Wagner [MVP] wrote:
"Mad Scientist Jr" <us*************@yahoo.com> schrieb:
i just want to automatically size all open and non-mimized windows to
the specified height/width (in twips?)


P/invoke: 'EnumWindows' + 'MoveWindow'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Nov 30 '05 #5
Herfried,
Twips was a one time VB6 idea.


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
Nov 30 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Curzio Basso | last post: by
3 posts views Thread by Stephen V | last post: by
4 posts views Thread by terrybell105@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.