uses shellapi;<br>var<br> IconIndex : word;<br> h : hIcon;<br>begin<br> IconIndex := 0;<br> h := ExtractAssociatedIcon(hInstance,<br> PChar(filename),<br> IconINdex);<br> //将图标显示出来DrawIcon(image1.Canvas.Handle,0,0,h);<br>end;