mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
I've got something similar to what you need already written for something else. You are free to use it, though I offer no guarantee as to it's quality. See attached zip.
What you do is create a ctrl that is added to a window as normal, but pretends to be a Window by implementing dynamic sizing and trying to match the appearance of a native window. My version behaves correctly, though the appearance is not particularly good.