Board logo

Subject: 请教:CnWizards的图标从哪里找出来的? [Print This Page]

Author: xychen    Time: 2009-6-6 20:08     Subject: 请教:CnWizards的图标从哪里找出来的?

查看源文件目录,得知很多图标是来自Bin\Icons目录,但是这个目录里面都是CnWizards的自画图标,对于那种直接来自Delphi IDE的图标,又是如何提取出来的?
Author: Passion    Time: 2009-6-6 21:24

Delphi IDE运行期自身有个ImageList,可通过CnWizUtils中的这个函数来获得:

function GetIDEImageList: TCustomImageList;
var
  Svcs40: INTAServices40;
begin
  QuerySvcs(BorlandIDEServices, INTAServices40, Svcs40);
  Result := Svcs40.ImageList;
end;




Welcome to CnPack Forum (http://bbs.cnpack.org/) Powered by Discuz! 5.0.0