给分吧
procedure TForm1.FormCreate(Sender: TObject);
var
AFull, AClient: THandle;
X, Y: Integer;
begin
AFull := CreateRectRgn(0, 0, Width, Height);
X := (Width - ClientWidth) div 2;;
Y := Height - ClientHeight - ((Width - ClientWidth) div 2);
AClient := CreateRectRgn(X, Y, X + ClientWidth, Y + ClientHeight);
CombineRgn(AFull, AFull, AClient, RGN_DIFF);
SetWindowRgn(Handle, AFull, True);
end;