/**//*CRect::PtInRectDetermineswhetherthespecifiedpointlieswithinCRect.*/BOOLPtInRect(POINTpoint)constthrow();/**//*ParameterspointContainsaPOINTstructureorCPointobject.ReturnValueNonzeroifthepointlieswithinCRect;otherwise0.RemarksApointiswithinCRectifitliesontheleftortopsideoriswithinallfoursides.ApointontherightorbottomsideisoutsideCRect.NoteTherectanglemustbenormalizedorthisfunctionmayfail.YoucancallNormalizeRecttonormalizetherectanglebeforecallingthisfunction.Example*/CRectrect(5,5,100,100);CPointpt1(35,50);CPointpt2(125,298);//thisistrue,becausept1isinsidetherectangleASSERT(rect.PtInRect(pt1));//thisisNOTtrue,becausept2isoutsidetherectangleASSERT(!rect.PtInRect(pt2));//notethattherightandthebottomaren'tinsideASSERT(!rect.PtInRect(CPoint(35,100)));ASSERT(!rect.PtInRect(CPoint(100,98)));//butthetopandtheASSERT(rect.PtInRect(CPoint(5,65)));ASSERT(rect.PtInRect(CPoint(88,5)));//andthatPtInRect()worksagainstaPOINT,tooPOINTpt;pt.x=35;pt.y=50;ASSERT(rect.PtInRect(pt));/*SeeAlsoReferenceCRectClassHierarchyChartCRect::NormalizeRectPtInRectOtherResourcesCRectMembers*/