来自:huizhang 时间:99-5-16 22:41:09 ID:108689
//Set your form to Ellipse region
procedure TForm1.Button1Click(Sender: TObject);
var
hRGN: THandle;
begin
hRGN := CreateEllipticRgn(0,0,width,height);
SetWindowRgn(Handle, hRgn, true);
end;
//Set your form to RoundRect region
procedure TForm1.Button2Click(Sender: TObject);
var
hRGN: THandle;
begin
hRGN := CreateRoundRectRgn(0,0,width,height,Width div 4, Height div 4);
SetWindowRgn(Handle, hRgn, true);
end;
>>并在拖动窗体时显示其内容?
??