本文整理自网络,侵删。
delphi提取exe,dll文件的ICON图标
关键字:ExtractIcon TIcon
类 别:API
使用API函数ExtractIcon()
例子:
var
TheIcon: TIcon;
begin
TheIcon := TIcon.Create;
TheIcon.Handle := ExtractIcon(hInstance,''C:\SOMEPATH\SOMEPROG.EXE'',0);
{对icon进行一些操作}
TheIcon.Free;
end;
相关阅读 >>
print documents from Delphi - print pdf, doc, xls, html, rtf, docx, txt
winapi 字符及字符串函数(6): ischaralphanumeric - 是否是个文字(字母或数字)
Delphi webbroker standalone 模式下当作一个普通的 webserver 响应静态网页或其它文件的请求
更多相关阅读请进入《Delphi》频道 >>