<?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[icon für arbeitsplatz&#x2F;netzwerkumgebung etc..]]></title><description><![CDATA[<p>hi,</p>
<p>ich bastel grade an einem dateimanager wie dem windows explorer.<br />
mit SHGetFileInfo kann ich auch das zu einer endung gehörende icon auslesen.</p>
<p>jedoch weiß ich nicht, wie ich an die systemicons wie dem von arbeitsplatz, netzwerkumgebung, desktop etc rankomme.</p>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/128014/icon-für-arbeitsplatz-netzwerkumgebung-etc</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 15:34:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/128014.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Nov 2005 15:55:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Tue, 29 Nov 2005 15:55:04 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich bastel grade an einem dateimanager wie dem windows explorer.<br />
mit SHGetFileInfo kann ich auch das zu einer endung gehörende icon auslesen.</p>
<p>jedoch weiß ich nicht, wie ich an die systemicons wie dem von arbeitsplatz, netzwerkumgebung, desktop etc rankomme.</p>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/929891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/929891</guid><dc:creator><![CDATA[explorer]]></dc:creator><pubDate>Tue, 29 Nov 2005 15:55:04 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Wed, 30 Nov 2005 09:29:58 GMT]]></title><description><![CDATA[<p>achso wo wir grad dabei sind:</p>
<p>mit GetDriveType() bekomme ich ja den typ eines laufwerks. wie finde ich jetzt aber zb raus, ob es ein diskettenlaufwerk oder ein usb-stick ist? (sind ja beides DRIVE_REMOVABLE).</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/930359</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/930359</guid><dc:creator><![CDATA[explorer]]></dc:creator><pubDate>Wed, 30 Nov 2005 09:29:58 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Wed, 30 Nov 2005 09:49:46 GMT]]></title><description><![CDATA[<p>Mit der SHGetFileInfo-Funktion bekommst du ein Handle auf das jeweilige Icon und mit diesem Handle kannst du dann ja das entpsrechende Icon z.B. einer CListbox anzeigen.</p>
<pre><code class="language-cpp">SHFILEINFO sfi;
ZeroMemory(&amp;sfi, sizeof(SHFILEINFO));

SHGetFileInfo(  extension.c_str(), 
		FILE_ATTRIBUTE_NORMAL, 
		&amp;sfi, 
		sizeof(sfi), 
		SHGFI_USEFILEATTRIBUTES|SHGFI_ICON|SHGFI_SMALLICON);

return sfi.hIcon;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/930382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/930382</guid><dc:creator><![CDATA[DanielG]]></dc:creator><pubDate>Wed, 30 Nov 2005 09:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Wed, 30 Nov 2005 10:01:35 GMT]]></title><description><![CDATA[<p>und mit deinem Stick: schau doch einfach nach der Grösse des Datenträgers...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/930398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/930398</guid><dc:creator><![CDATA[DanielG]]></dc:creator><pubDate>Wed, 30 Nov 2005 10:01:35 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Wed, 30 Nov 2005 10:53:54 GMT]]></title><description><![CDATA[<p>Wie funktioniert das mit dem Auslesen des Icon?<br />
Ist extension dann der Pfad zur Datei?<br />
Ich erhalte kein Icon in der Ansicht meiner List Box.</p>
<pre><code class="language-cpp">SHFILEINFO sfi; 
ZeroMemory(&amp;sfi, sizeof(SHFILEINFO)); 
LPCTSTR pfad=&quot;c:\\test.txt&quot;;
SHGetFileInfo(  pfad, 
        FILE_ATTRIBUTE_NORMAL, 
        &amp;sfi, 
        sizeof(sfi), 
        SHGFI_USEFILEATTRIBUTES|SHGFI_ICON|SHGFI_SMALLICON); 

m_box.SetIcon(sfi.hIcon,FALSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/930432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/930432</guid><dc:creator><![CDATA[Bucks]]></dc:creator><pubDate>Wed, 30 Nov 2005 10:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Wed, 30 Nov 2005 14:31:51 GMT]]></title><description><![CDATA[<p>Ja, genau, extension ist die Dateierweiterung. Du kannst aber auch den ganzen Dateinamen übergeben. Programmier leider nicht mit MFC aber prinzipiell müsste es so gehen, ja.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/930642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/930642</guid><dc:creator><![CDATA[DanielG]]></dc:creator><pubDate>Wed, 30 Nov 2005 14:31:51 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Wed, 30 Nov 2005 15:08:57 GMT]]></title><description><![CDATA[<p>Hmm, wird leider kein Icon angezeigt. Ich mache wohl doch irgendwas<br />
falsch. Ich poste gleich sonst mal im MFC-Bereich, falls niemand<br />
in API eine Antwort drauf hat.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/930688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/930688</guid><dc:creator><![CDATA[Bucks]]></dc:creator><pubDate>Wed, 30 Nov 2005 15:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Thu, 01 Dec 2005 07:33:33 GMT]]></title><description><![CDATA[<p>Schau dir vielleicht auch mal <a href="http://www.catch22.net/tuts/sysimg.asp" rel="nofollow">das hier</a> an <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/931127</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931127</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 01 Dec 2005 07:33:33 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Thu, 01 Dec 2005 16:21:54 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>erstmal danke für die antworten, jedoch ist eigentlich keine von denen hier eine auf meine frage(n).</p>
<p>wegen des laufwerkstypen: mit der größe würde es wohl gehen...aber etwas unsauber gelöst finde ich.</p>
<p>wegen der icons: ich weiß generell selber, wie ich die system icon list anspreche und kann auch die icons in meinem listview verwenden (hab ich wohl etwas unsauber ausgedrückt). mir geht es nur darum die speziellen icons auszulesen wie das des Arbeitsplatzes, was ja keine extension oä besitzt :p<br />
das problem konnte ich aber mittlerweise selber mit SHGetSpecialFolderLocation und SHGFI_PIDL lösen. trotzdem danke an alle.</p>
<p>das mit dem laufwerkstypen steht trotzdem noch aus, wenns echt keine andere lösung geben sollte werde ich das mit der datenträgergröße machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931457</guid><dc:creator><![CDATA[explorer]]></dc:creator><pubDate>Thu, 01 Dec 2005 16:21:54 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Thu, 01 Dec 2005 16:33:37 GMT]]></title><description><![CDATA[<p>ok hab was gefunden:</p>
<p><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;163920" rel="nofollow">http://support.microsoft.com/default.aspx?scid=kb;en-us;163920</a></p>
<p>danke trotzdem</p>
]]></description><link>https://www.c-plusplus.net/forum/post/931475</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/931475</guid><dc:creator><![CDATA[explorer]]></dc:creator><pubDate>Thu, 01 Dec 2005 16:33:37 GMT</pubDate></item><item><title><![CDATA[Reply to icon für arbeitsplatz&#x2F;netzwerkumgebung etc.. on Fri, 02 Dec 2005 16:30:38 GMT]]></title><description><![CDATA[<p>ich nochmal...gibt es auch die möglichkeit, nur aufgrund der kenntnis des typs eines laufwerks (HDD, CD-ROM...) herauszufinden, welches icon ich verwenden soll? also ohne wirklich aufs laufwerk zugreifen zu müssen.</p>
<p>ty</p>
]]></description><link>https://www.c-plusplus.net/forum/post/932528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/932528</guid><dc:creator><![CDATA[explorer]]></dc:creator><pubDate>Fri, 02 Dec 2005 16:30:38 GMT</pubDate></item></channel></rss>