1.应用程序反应器可以在ZW3D软件层面触发事件,如ZW3D软件打开运行并完全初始化后触发反应器(效果:双击打开ZW3D,在软件完全加载后触发用户自定义事件)。
2.实现代码
int 程序启动完成(void* param)
{
cvxMsgDisp("ZW3D started! Test!");
return 0;
}
//入口函数,程序加载时调用
int ReactorTestInit()
{
//ZW3D启动完成时的反应器
svxAppActionParam appStarted = { 0 };
appStarted.pfn = 程序启动完成;//要触发的回调函数
appStarted.param = NULL;
ZF_CALL(cvxAppAction(evxAppAction::VX_APP_STARTED, &appStarted));
return 0;
}
//入口函数,程序卸载时调用
int ReactorTestExit()
{
//注销反应器
svxAppActionParam param = { 0 };
param.pfn = NULL;
param.param = NULL;
ZF_CALL(cvxAppAction(evxAppAction::VX_APP_STARTED, ¶m));
return 0;
}
3.运行效果