//rc 文件:
cur1 CURSOR cur\kyodai.cur
cur2 CURSOR cur\static.cur

//或者
cur1,CURSOR,cur\kyodai.cur
cur2,CURSOR,cur\static.cur

//程序代码: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls; type TForm1 = class(TForm) Panel1: TPanel; Panel2: TPanel; procedure FormCreate(Sender: TObject); end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormCreate(Sender: TObject); begin Screen.Cursors[1] := LoadCursor(HInstance, 'cur1'); Screen.Cursors[2] := LoadCursor(HInstance, 'cur2'); Panel1.Cursor := TCursor(1); //Panel1.Cursor := 1; 也可, 因为 TCursor 就是个数字类型. Panel2.Cursor := TCursor(2); end; end.
//效果图:
学习使用资源文件[5] - 鼠标指针资源

相关文章:

  • 2021-10-15
  • 2021-08-10
  • 2021-10-20
  • 2021-05-29
  • 2021-12-17
  • 2021-05-17
  • 2022-12-23
  • 2021-11-13
猜你喜欢
  • 2021-07-19
  • 2021-08-25
  • 2022-02-08
  • 2021-08-20
  • 2022-02-23
相关资源
相似解决方案