if (SUCCEEDED(pGeometry->QueryInterface(IID_CATLine, (void**)&spLine)))//((CATICGMUnknown*)pGeometry)->IsATypeOf(CATLineType)
{
cout<<"find the line"<<endl;
//_piTheNextLineCell=_piLineCell;
}
else if (SUCCEEDED(pGeometry->QueryInterface(IID_CATCircle, (void**)&spCircle)))//((CATICGMUnknown*)pGeometry)->IsATypeOf(CATCircleType)
{
cout<<"find the circle"<<endl;
//_piTheNextCircleCell=_piLineCell;
}
else
cout<<"no type found"<<endl;
}