NX开发,blockUI窗口调用blockUI窗口

主要过程如下:
(1)加入第二个对话框的头文件
(2)注释掉第二个对话框入口相关函数(extern)
(3)在第一个对话框中,实例化第二个对话框的类,进而可以调用其成员变量或者方法操作


lesson35_dialogB *dialogB = new lesson35_dialogB();
dialogB->Show();
this->multiline_string0->GetProperties()->SetStrings("Value",dialogB->strings);
delete dialogB;


//hpp b public里定义一下
vector<NXString>strings;
// cpp b
strings = this->multiline_string0->GetProperties()->GetStrings("Value");
// cpp A Show()下面写
this->multiline_string0->GetProperties()->SetStrings("Value",dialogB->strings);
delete dialogB;

原文地址:https://www.cnblogs.com/huadong2020/p/13789462.html