A child focus event is sent to a (parent-)window when one of its child windows gains focus, so that the window could restore the focus back to its corresponding child if it loses it now and regains later.
Notice that child window is the direct child of the window receiving event. Use wxWindow:findFocus/0 to retrieve the window which is actually getting focus.
See: Overview events
wxWidgets docs: wxChildFocusEvent