我不知道帮 你 UP
解决方案 »
- 求教 4字节BYTE数组 和 INTEGER变量 的 直接转换(类似于 COPYMEMORY函数)。
- 自定义组件click事件问题
- 高分求救!rave 生成的报表,打包后生成报表中记录显示为invalid,请问是什么原因?
- 问个基本的问题,关于ADO控件的.
- BoundsChecker?我怎么搞不明白怎么用~
- fastreport问题
- 请问有类似VB中instr()函数的没有???
- 关于邮件发送的问题。。。100分。。在线!
- array[1..3]of byte 内容以'mm:ss'表示出来.怎么写
- delphi image 控件
- table绑定dbgrid,对表中的某个字段排序,该如何实现啊
- to zswang(伴水)(被黑中) ,师傅,俺在原来的帖子回不了话了,发新帖子也难,是不是被封了IP了?俺没做坏事啊?//cry
var
count,index,i:integer;
j:word;
ext:string;
Ico: TIcon;
begin
ListView.Items.BeginUpdate;
ext := LowerCase(ExtractFileExt(Filename));
if (ext = '.exe') or (ext = '.dll') or (ext = '.icl') then
begin
Ico := TIcon.Create;
index := -1;
count := ExtractIcon(Hinstance, Pchar(Filename), index);
ProgressBar1.Max := count;
for i := 0 to count - 1 do
begin
ProgressBar1.Position := i+1;
Ico.Handle := ExtractIcon(Hinstance, Pchar(Filename), i);
//Ico.SaveToFile
ImageList1.AddIcon(Ico);
with ListView do
begin
Items.Add;
Items[Items.Count - 1].Caption := IntToStr(i + 1);
Items[Items.Count - 1].ImageIndex := Items.Count - 1;
end;
Application.ProcessMessages;
end
end;
ListView1.Items.EndUpdate;
ProgressBar.Position := 0;
end;