Examples Delphi

VAR
h: THandle;
begin
h := CreateEllipticRgn(40, 40, 300, 200);
SetWindowRgn(Handle,h,TRUE);
Well.. that's all !