I have already tried to debug this, but I have found it impossible to do it remotely. I need to install W2k locally. But obviously it is too much work... :-(
Sadly it's been ages since I don't program under Windows, so I could not debug this either.
Still, maybe there's a possibility using DebugView
so I could run a version of WinSCP using OutputDebugString in certain places and capture some information for you to review?
Edited: comparing the sources from 4.0.7 and 4.1.8, it seems that there's code related to WindowState that has been changed in StoreForm() and RestoreForm() both in Tools.cpp. Maybe there is something that could be traced there?
Anyway, I'm happily using WinSCP 4.0.7 for now.