用过Office97吗?是不是觉得在菜单中显示图标很新鲜?但是如何实现呢?
请大家对如下代码进行指正?谢谢!!procedure TForm1.FormCreate(Sender: TObject);
var
Bmp:TPicture;
begin
Bmp:=TPicture.Create;
Bmp.LoadFromFile('d:\abort.bmp');
SetMenuItemBitmaps(bb1.Handle,0.MF_BYPOSITION,Bmp.Bitmap.Handle,Bmp.Bitmap.Handle);
end;我运行时提示出错,代码如下:[Error] Unit1.pas(34): Incompatible types: 'Cardinal' and 'Extended'
[Error] Unit1.pas(34): Statement expected, but expression of type 'Integer' found
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
请大家对如下代码进行指正?谢谢!!procedure TForm1.FormCreate(Sender: TObject);
var
Bmp:TPicture;
begin
Bmp:=TPicture.Create;
Bmp.LoadFromFile('d:\abort.bmp');
SetMenuItemBitmaps(bb1.Handle,0.MF_BYPOSITION,Bmp.Bitmap.Handle,Bmp.Bitmap.Handle);
end;我运行时提示出错,代码如下:[Error] Unit1.pas(34): Incompatible types: 'Cardinal' and 'Extended'
[Error] Unit1.pas(34): Statement expected, but expression of type 'Integer' found
[Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货