我这样写,但生成出来那个角是尖的,怎样画一个圆角的??
就像RealOne(RealPlayer)一样。procedure THoleForm.BitBtn2Click(Sender: TObject);
var
rgn: HRGN;
p: array[0..7] of TPoint;
begin //将坐标保存于数组p中
p[0].x := 5;
p[0].y := 0; p[1].x := width-5;
p[1].y := 0; p[2].x := width;
p[2].y := 5; p[3].x := width;
p[3].y := height-5; p[4].x := width-5;
p[4].y := height; p[5].x := 5;
p[5].y := height; p[6].x := 0;
p[6].y := height-5; p[7].x := 0;
p[7].y := 5; //根据数组p创建一个多边形
rgn := CreatePolygonRgn( p,8,WINDING);
//根据多边形设置窗口形状
SetWindowRgn(Handle, rgn, True );end;
就像RealOne(RealPlayer)一样。procedure THoleForm.BitBtn2Click(Sender: TObject);
var
rgn: HRGN;
p: array[0..7] of TPoint;
begin //将坐标保存于数组p中
p[0].x := 5;
p[0].y := 0; p[1].x := width-5;
p[1].y := 0; p[2].x := width;
p[2].y := 5; p[3].x := width;
p[3].y := height-5; p[4].x := width-5;
p[4].y := height; p[5].x := 5;
p[5].y := height; p[6].x := 0;
p[6].y := height-5; p[7].x := 0;
p[7].y := 5; //根据数组p创建一个多边形
rgn := CreatePolygonRgn( p,8,WINDING);
//根据多边形设置窗口形状
SetWindowRgn(Handle, rgn, True );end;
找不到这个函数。