请教高手帮忙介绍一下 点击:405 | 回复:1



libaoxiang

    
发表于:2010-12-15 02:21:35
楼主

里面的函数我都查过资料看了呢,也懂了他们的基本含义,但书本上讲的太专业化,没有具体的实例,感觉很朦胧,下面的脚本函数我看了但不能将他们连贯起来,请高手帮忙解说一下,在此多谢了,,,由于字符型char不能提交,因而将字符型char后面多加了一个字母r,即在文中charr=char,,,,,多谢了

void openbox_EX601(charr * lpszPictureName, charr * lpszObjectName, charr * lpszPropertyName ,charr  * picw)
{
charr s【50】;
int x,y,x1,y1,x2,y2,x3,y3;
strcpy(s,GetPropCharr (lpszPictureName,lpszObjectName,"ToolTipText"));
SetTagCharr ("DeviceName",s);
SetPropCharr (lpszPictureName,picw,"PictureName","operator_EX601.PDL");
SetPropCharr (lpszPictureName,picw,"CaptionText",s);
x=GetWidth(lpszPictureName,lpszObjectName);
//y=GetHeight(lpszPictureName,lpszObjectName);
x1=GetWidth(lpszPictureName,picw);
y1=GetHeight(lpszPictureName,picw);
x2=GetLeft(lpszPictureName,lpszObjectName) ;
y2=GetTop(lpszPictureName,lpszObjectName) ;
if ((x+x1+x2)>874 )
x3=x2-x1;
else
x3=x+x2;
if ((y1+y2)>685)
y3=685-y1;
else
y3=y2;
SetPropWord(lpszPictureName,picw,"Left",x3);
SetPropWord(lpszPictureName,picw,"Top",y3 );
SetPropBOOL(lpszPictureName,picw,"Visible",1);
}



楼主最近还看过

SSI ļʱ