情景描述:
首先,我每次只想选择一个对象,默认就是这样的。
其次,我每选一个新的对象后,只希望当前选择的对象高亮,而之前选的对象不要高亮
现在面临的问题是,之前选过的对象它也高亮了,怎么样不让它高亮呢?
附上代码:
_pObjAgent = new CATFeatureImportAgent("Please select a object",NULL,NULL,MfNoDuplicateFeature);
_pObjAgent->SetOrderedElementType("CATIMfTriDimResult");
_pObjAgent->AddOrderedElementType("CATVolume");//get by class name
_pObjAgent->AddOrderedElementType("CATBody");//get by class name
_pObjAgent->SetBehavior(CATDlgEngWithPSOHSO|CATDlgEngWithPrevaluation|CATDlgEngOneShot);
_pObjAgent->SetAgentBehavior(MfPermanentBody|MfLastFeatureSupport|MfRelimitedFeaturization);