HWND ChildWindowFromPoint(hWndParent,Point)
This function determines which, if any, of the child windows belonging to the given parent window contains the specified point.
Parameter | Type/Description |
hWndParent | HWND Identifies the parent window. | |
Point | POINT Specifies the client coordinates of the point to be tested. |
The return value identifies the child window that contains the point. It is NULL if the given point lies outside the parent window. If the point is within the parent window but is not contained within any child window, the handle of the parent window is returned.