View previous topic :: View next topic |
Author |
Message |
bbelcher Contributor
Joined: 30 Jul 2002 Posts: 172
|
Posted: Thu Apr 07, 2005 6:28 pm Post subject: resize PuTTY window |
|
|
Hello,
I'm trying to reposition a PuTTY session window and having a difficult time at it. It's a telnet/ssh client
http://www.chiark.greenend.org.uk/~sgtatham/putty/
The window will allow me to position the top, left but the width and height will not resize.
Code:
Window position,#PuTTY,0,0,1200,400
I know this is right and the window receives the message but as I said it will not resize.
When I resize it manually it does it by rows and columns i.e. 12rows X 112columns. But if I look at the window via window spy it show the 923 X 228
Any ideas? |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Apr 07, 2005 10:14 pm Post subject: |
|
|
Perhaps the window needs to be sent a refresh message. There is an
API message you can send to do this; try searching for it. I hope this
was helpful. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
bbelcher Contributor
Joined: 30 Jul 2002 Posts: 172
|
Posted: Fri Apr 08, 2005 12:19 pm Post subject: |
|
|
I dont think it's a refresh problem. what I ment about the following statement
"12rows X 112columns. But if I look at the window via window spy it show the 923 X 228"
was 12 rows x 112 columns = 923 x 228 pixels. Also when I send a message to the window I can see it blink as if it were being redrawn. Window iconize, Maximize, normal all work but for some reason it wont resize.
Does anyone know what the API is to resize windows? |
|
Back to top |
|
|
Mac Professional Member
Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Fri Apr 08, 2005 1:13 pm Post subject: |
|
|
SetWindowPos() in user32.dll.
I had to make a util to resize some apps with this (using VDSug.dll) in VDS 3.
Cheers, Mac _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
|
|
Back to top |
|
|
|