You could use WindowFromPoint or ChildWindowFromPoint APIs just in case.