Thank you Frankolinox for sharing this.
I tried it on my win 7 laptop and it works nicely.
When i created two child windows and moved one over the other, the child windows did not paint themselves properly, and left traces
of their frames.
I am trying to figure this out.