<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem --]]></title><description><![CDATA[<p>Hallo...</p>
<p>Ich lese ein Verzeichnis aus und mit folgendem Code die Icons.</p>
<pre><code class="language-cpp">SHGetFileInfo(DateiPfad.c_str(),0,&amp;FileInfo,sizeof(SHFILEINFO),SHGFI_ICON | SHGFI_SMALLICON);
MyIcon-&gt;Handle = FileInfo.hIcon;
Form1-&gt;ImageList3-&gt;AddIcon(MyIcon);
</code></pre>
<p>Dafür benötigt mein Programm 15ms.<br />
Ohne das Auslesen der Icons sind es nur 2ms.</p>
<p>Hat jemand einen Tipp, wie ich die ganze Sache beschleunigen kann ???</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/210778/dateiicons-in-eine-imagelist-lesen-geschwindigkeitsproblem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 17:01:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/210778.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Apr 2008 08:15:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Tue, 15 Apr 2008 08:15:03 GMT]]></title><description><![CDATA[<p>Hallo...</p>
<p>Ich lese ein Verzeichnis aus und mit folgendem Code die Icons.</p>
<pre><code class="language-cpp">SHGetFileInfo(DateiPfad.c_str(),0,&amp;FileInfo,sizeof(SHFILEINFO),SHGFI_ICON | SHGFI_SMALLICON);
MyIcon-&gt;Handle = FileInfo.hIcon;
Form1-&gt;ImageList3-&gt;AddIcon(MyIcon);
</code></pre>
<p>Dafür benötigt mein Programm 15ms.<br />
Ohne das Auslesen der Icons sind es nur 2ms.</p>
<p>Hat jemand einen Tipp, wie ich die ganze Sache beschleunigen kann ???</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492254</guid><dc:creator><![CDATA[Eisbeer__NotLoggedIn__]]></dc:creator><pubDate>Tue, 15 Apr 2008 08:15:03 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Tue, 15 Apr 2008 11:42:31 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-14774.html" rel="nofollow">akari</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL (C++ Builder)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492336</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Tue, 15 Apr 2008 11:42:31 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Tue, 15 Apr 2008 11:46:45 GMT]]></title><description><![CDATA[<p>schnelleren rechner kaufen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492337</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492337</guid><dc:creator><![CDATA[wen jiabao]]></dc:creator><pubDate>Tue, 15 Apr 2008 11:46:45 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Tue, 15 Apr 2008 12:45:24 GMT]]></title><description><![CDATA[<p>Ich brauche keinen schnelleren Rechner, sondern einen schnelleren Weg...</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492375</guid><dc:creator><![CDATA[Eisbeer__NotLoggedIn__]]></dc:creator><pubDate>Tue, 15 Apr 2008 12:45:24 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Tue, 15 Apr 2008 12:49:24 GMT]]></title><description><![CDATA[<blockquote>
<p>There are two ways to retrieve an object's icon. The simplest way is to call SHGetFileInfo. However, this approach is inflexible and may be slow. A more flexible and efficient way to retrieve an item's icon is to use IExtractIcon. The Shell uses IExtractIcon to retrieve icons when it displays the contents of a folder.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1492380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492380</guid><dc:creator><![CDATA[Informatiklehrer]]></dc:creator><pubDate>Tue, 15 Apr 2008 12:49:24 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Tue, 15 Apr 2008 13:34:51 GMT]]></title><description><![CDATA[<p>Da Du ja hier nur auf die Extensions Wert legst, kannst Du dasganze ja auch Cachen. Ein Word Icon langt ja... oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492415</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 15 Apr 2008 13:34:51 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Tue, 15 Apr 2008 14:17:28 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">DWORD dwFileAttributes = GetFileAttributes(DateiPfad.c_str());
SHGetFileInfo(DateiPfad.c_str(), dwFileAttributes, &amp;FileInfo, sizeof(SHFILEINFO), SHGFI_ICON | SHGFI_SMALLICON | SHGFI_USEFILEATTRIBUTES); 
MyIcon-&gt;Handle = FileInfo.hIcon; 
Form1-&gt;ImageList3-&gt;AddIcon(MyIcon);
</code></pre>
<p>Geht schneller, gibt aber nur Dateisymbole entsprechend der Dateierweiterung zurück. Bei EXE-Dateien wird z.B. nur das normale EXE-Symbol angezeigt, nicht aber das in der EXE enthaltene.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492440</guid><dc:creator><![CDATA[sri]]></dc:creator><pubDate>Tue, 15 Apr 2008 14:17:28 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Wed, 16 Apr 2008 10:15:46 GMT]]></title><description><![CDATA[<p>Danke für die Unterstützung.</p>
<p>Das Posting von sri bringt 2ms.</p>
<p>Kann mir jemand die Sache mit dem Icon-Cacheing erklären ???</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492845</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492845</guid><dc:creator><![CDATA[Eisbeer__NotLoggedIn__]]></dc:creator><pubDate>Wed, 16 Apr 2008 10:15:46 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Wed, 16 Apr 2008 10:53:34 GMT]]></title><description><![CDATA[<p>Leg Dir eine std::map an nach Extension und mit dem gepeicherten Icon...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1492877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1492877</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 16 Apr 2008 10:53:34 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Mon, 21 Apr 2008 14:29:40 GMT]]></title><description><![CDATA[<blockquote>
<p>Leg Dir eine std::map an nach Extension und mit dem gepeicherten Icon...</p>
</blockquote>
<p>Könntest du etwas genauer werden ???</p>
<p>==&gt;Eisbeer&lt;==</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1495701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1495701</guid><dc:creator><![CDATA[Eisbeer__NotLoggedIn__]]></dc:creator><pubDate>Mon, 21 Apr 2008 14:29:40 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Mon, 21 Apr 2008 20:03:28 GMT]]></title><description><![CDATA[<p>Ich war (denke ich) genau genug...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1495890</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1495890</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Mon, 21 Apr 2008 20:03:28 GMT</pubDate></item><item><title><![CDATA[Reply to DateiIcons in eine ImageList lesen -- GeschwindigkeitsProblem -- on Mon, 21 Apr 2008 20:17:20 GMT]]></title><description><![CDATA[<p>Und warum benutzt du nicht IExtractIcon wie Informatiklehrer es forschlug?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1495906</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1495906</guid><dc:creator><![CDATA[cacher]]></dc:creator><pubDate>Mon, 21 Apr 2008 20:17:20 GMT</pubDate></item></channel></rss>