我想了半天,还是没有更好的办法,只能把我的办法贴出来,抛砖引玉吧~-~!<br>首先用 Screen.Cursors[1]:=LoadCursor(HInstance,'AAA');是不可以的,<br>因为资源文件中只能定义成:<br>AAA RCDATA "AAA.ANI"<br>而非:<br>AAA CURSOR "AAA.ANI"<br>我的解决办法如下:<br><br>procedure TForm1.Button2Click(Sender: TObject);<br>var<br> resstrm :TResourceStream;<br> fname :string;<br>begin<br> fname := ExtractFilePath(paramstr(0))+'tmp.ani';<br> resstrm := TResourceStream.Create(Hinstance,'AAA',RT_RCDATA); //!!!<br> resstrm.SaveToFile(fname);<br> Screen.Cursors[crMyAni] :=LoadCursorFromFile('tmp.ani');<br> panel3.Cursor := crMyAni;<br> DeleteFile(fname);<br> resstrm.Free;<br>end;<br><br>这种方法是肯定能用的,就是比较难看! :-(