Yes I understand the intricate details on tracking the events relative to the sub-windows and it's parent as well and trigger the paint functions. This is a lot of work, and I've decided to reorganize the UI in splitter instead.
Thanks a lot for shedding light on this, hoping we can have MDI support next.