Use GetChild and GetChildCount, I think there is a major problem in DoLayout
Now DoLayout should be fine