Determines which, if any, of the child windows belonging to CWnd contains the specified point.
CWnd* ChildWindowFromPoint( POINT point ) const; CWnd* ChildWindowFromPoint( POINT point, UINT nFlags ) const;
Identifies the child window that contains the point. It is NULL if the given point lies outside of the client area. If the point is within the client area but is not contained within any child window, CWnd is returned.
This member function will return a hidden or disabled child window that contains the specified point.
More than one window may contain the given point. However, this function returns only the CWnd* of the first window encountered that contains the point.
The CWnd* that is returned may be temporary and should not be stored for later use.