procedure TForm1.Button1Click(Sender: TObject);
var
ttchar;
size:integer;
s:string;
begin
if opendialog1.Execute then
begin
Size:=length(opendialog1.filename);
getmem(tt,size);
s:=opendialog1.FileName;
strpcopy(tt,s);
screen.Cursors[2]:=loadcursorfromfile(tt);
form1.cursor:=2;
freemem(tt,size);
end;
end;
//把OpenDialog中的filter设为 *.cur