答案 0 :(得分:6)
快速举例:
procedure TForm1.Button2Click(Sender: TObject);
var
t_Icon: TIcon;
begin
t_Icon := TIcon.Create();
t_Icon.Handle := LoadImage( 0, MAKEINTRESOURCE(32513), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE or LR_SHARED );
if ( t_Icon.Handle <> 0 ) then
ImageList1.AddIcon( t_Icon );
// .............
t_Icon.Free();
end;