these code detect the active window:
Code:
lngActivatedWindow = GetActiveWindow
but how can i detect an active child window?