Only one MDI child can be active at a time, you get it with
WM_MDIGETACTIVE. If you want all MDI child windows, use GetWindow with
GW_CHILD and GW_HWNDNEXT options.
With best wishes,
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken