S
sunrain_114
Unregistered / Unconfirmed
GUEST, unregistred user!
那位大侠能给我详细解释以下的代码的含义:
top:=screen.Height -50;
left:=screen.Width -120;
height:=label1.Height ;
width:=label1.Width;
margin:=(width-clientwidth) div 2;
fullRgn:=createrectrgn(0,0,width,height);
x:=margin;
y:=height-clientheight-margin;
clientrgn:=createrectrgn(x,y,x+clientwidth,y+clientheight);
combinergn(fullrgn,fullrgn,clientrgn,rgn_diff);
x:=x+label1.Left;
y:=y+label1.Top;
buttonrgn:=createrectrgn(x,y,x+label1.Width,y+label1.Height);
combinergn(fullrgn,fullrgn,buttonrgn,rgn_or);
setwindowrgn(handle,fullrgn,true);
感谢!!!
top:=screen.Height -50;
left:=screen.Width -120;
height:=label1.Height ;
width:=label1.Width;
margin:=(width-clientwidth) div 2;
fullRgn:=createrectrgn(0,0,width,height);
x:=margin;
y:=height-clientheight-margin;
clientrgn:=createrectrgn(x,y,x+clientwidth,y+clientheight);
combinergn(fullrgn,fullrgn,clientrgn,rgn_diff);
x:=x+label1.Left;
y:=y+label1.Top;
buttonrgn:=createrectrgn(x,y,x+label1.Width,y+label1.Height);
combinergn(fullrgn,fullrgn,buttonrgn,rgn_or);
setwindowrgn(handle,fullrgn,true);
感谢!!!