if(pItem->boundingBox().containsPoint(point)) { //do sth }
2:other way
CCPoint pos = this->getPosition(); CCSize size = this->getContentSize(); CCRect rect(pos.x, pos.y, size.width, size.height); if( CCRect::CCRectContainsPoint(rect, point) ) { //do sth }