CWnd::IsChild
Visual Studio 2012
Indicates whether the window specified by pWnd is a child window or other direct descendant of CWnd.
BOOL IsChild( const CWnd* pWnd ) const;
Indicates whether the window specified by pWnd is a child window or other direct descendant of CWnd.
BOOL IsChild( const CWnd* pWnd ) const;