Example #1
0
//-----------------------------------------------------------------------------
// Name: Frame::IsChild()
// Desc: Returns TRUE if the specified frame is a direct child of this frame
//-----------------------------------------------------------------------------
BOOL Frame::IsChild( Frame* pOtherFrame )
{
    if( pOtherFrame == NULL )
        return FALSE;
    Frame* pChild = GetFirstChild();
    while( pChild != NULL )
    {
        if( pChild == pOtherFrame )
            return TRUE;
        pChild = pChild->GetNextSibling();
    }
    return FALSE;
}