Catia CAA二次开发源码分享: 选择控件返回选择内容
Catia CAA二次开发源码分享: 选择控件返回选择内容// Add your code here
CATDlgNotify *infordialog = new CATDlgNotify(this," ",CATDlgNfyInformation);
CATUnicodeString str;
CATUnicodeString tempvalue;
int index = _SelectorListTest->GetSelectCount();
int *array = (int *) malloc(index*sizeof(int));
int selectCount = _SelectorListTest->GetSelect(array,index);
for (int i = 0; i< index ;i++)
{
_SelectorListTest->GetLine(tempvalue,array);
str = str + "--" + tempvalue;
}
infordialog->SetText("you select value are " + str);
infordialog->SetTitle("PLMHome Select refreshing");
infordialog->SetVisibility(CATDlgShow);
页:
[1]