已知图片路径和名称,请问把图片添加到 ImageList 控件中去用代码怎么写???
还有我发现有些软件在选择某可执行程序后能把该程序的图标提取(显示)出来,这是怎么做到的???

解决方案 »

  1.   

    我到这里就不会写了阿,谁来帮帮我阿
    imagelist.add(????????)
      

  2.   

    //图标
    var
      theIcon:TICON;
    begin
      theIcon:=TICON.Create;
      theIcon.LoadFromFile('D:\30-Be98 Desktop Internet.ico'); 
      ImageList1.AddIcon(theIcon);
    end;
    //位图
    var
      theBitMap1:TBitMap;
    begin
      theBitMap1:=TBitMap.Create;
      theBitMap1.LoadFromFile('D:\Folder Private_p1.bmp');
      ImageList1.Add(theBitMap1,nil);
    end;