While looking for something else I came across this: http://spectcl.sourceforge.net/
It's the Activestate Komodo IDE GUI builder that has been released as opensource. It is used for TK - but it might be adaptable for dumping creation scripts for Win32 GUI windows. Cheers, Jez