标题: 如何在视图中设置层可见与不可见? [打印本页] 作者: suiyubing 时间: 2005-7-15 16:32 标题: 如何在视图中设置层可见与不可见? 请教高手,我首先新建了一个左右并列的布局,然后应用函数uc6447想在左边的视图中将第二层的实体隐去,在右边的视图中将第一层的实体隐去,本来手动操作可以实现,但是运用uc6447这个函数时却出现了问题,因为我不太清楚怎么给这个函数中的参数赋值,虽然帮助中说得很清楚,但是无论我怎么改动都不行,这个函数的参数是这样的:
extern int uc6447 (
char * cp1,
int ip2,
int * ip3 );
char * cp1 Input View Name (30 char max) "" = Work View
int ip2 Input Mask Status 1 = Global 2 = Individual
int * ip3 Input 256 word layer mask, indexed by layer number +1. So ip3[0] has the status of layer 1, ip3[1] has the status
of layer 2 and so on. Each element of the array can have
one of the following two values.
0 = Invisible In View
1 = Visible In View
请高手指点一下,谢谢。作者: suiyubing 时间: 2005-7-15 17:54
这个问题我已经解决了,呵呵,谢谢大家。作者: pzytony 时间: 2005-7-15 21:20
那也要说说是怎么解决的?作者: suiyubing 时间: 2005-7-16 08:09
好的,
int ir2=2;
int ir3[256]={0,1};
UF_CALL(uc6447("FRONT",ir2,ir3));就是这样做的,然后就实现了作者: IamWangzai 时间: 2005-8-8 16:18
有更好的办法吧,作者: suiyubing 时间: 2005-8-9 10:11
什么方法呀,能不能说一下呢。