<?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[Tree View mit ImageList aber mit 256 Farben...]]></title><description><![CDATA[<p>Hi, ich habe in VisualC++ ein TreeView und eine ImageList erstellt, das schaut Folgendermaßen aus:</p>
<pre><code class="language-cpp">m_ImageList . Create ( 32, 32, TRUE, 9, 2) ;
// Images mit 32 x 32 Pixel; 8 Elemente anfangs, Liste bei Bedarf um 2 erhöhen

HICON hIcon ;

hIcon = AfxGetApp() -&gt; LoadIcon ( IDI_CD ) ; // Icon Nr. 0
m_ImageList . Add ( hIcon ) ;
</code></pre>
<p>Ich füge Icons als Images hinzu, die haben auch 256 Farben und ich habe Sie auch so abgespeichert. Doch wenn Ich das Programm laufen lasse, zeigt er mir die Bilder nur mit 16 Farben an.<br />
Was mach ich falsch??</p>
<p>Wäre cool wenn mir jemand helfen könne</p>
<p>Gruß<br />
Stomper</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/52318/tree-view-mit-imagelist-aber-mit-256-farben</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 10:42:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/52318.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Oct 2003 13:35:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Tree View mit ImageList aber mit 256 Farben... on Sat, 18 Oct 2003 13:35:52 GMT]]></title><description><![CDATA[<p>Hi, ich habe in VisualC++ ein TreeView und eine ImageList erstellt, das schaut Folgendermaßen aus:</p>
<pre><code class="language-cpp">m_ImageList . Create ( 32, 32, TRUE, 9, 2) ;
// Images mit 32 x 32 Pixel; 8 Elemente anfangs, Liste bei Bedarf um 2 erhöhen

HICON hIcon ;

hIcon = AfxGetApp() -&gt; LoadIcon ( IDI_CD ) ; // Icon Nr. 0
m_ImageList . Add ( hIcon ) ;
</code></pre>
<p>Ich füge Icons als Images hinzu, die haben auch 256 Farben und ich habe Sie auch so abgespeichert. Doch wenn Ich das Programm laufen lasse, zeigt er mir die Bilder nur mit 16 Farben an.<br />
Was mach ich falsch??</p>
<p>Wäre cool wenn mir jemand helfen könne</p>
<p>Gruß<br />
Stomper</p>
]]></description><link>https://www.c-plusplus.net/forum/post/374899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/374899</guid><dc:creator><![CDATA[Stomper]]></dc:creator><pubDate>Sat, 18 Oct 2003 13:35:52 GMT</pubDate></item><item><title><![CDATA[Reply to Tree View mit ImageList aber mit 256 Farben... on Sat, 18 Oct 2003 16:56:32 GMT]]></title><description><![CDATA[<p>So, ich habs mittlerweile selbst rausgefunden und will euch die Lösung natürlich nicht vorbehalten:</p>
<pre><code class="language-cpp">m_ImageList . Create (32, 32, ILC_MASK | ILC_COLOR32, 10, 2) ;
// Images mit 32 x 32 Pixel; 8 Elemente anfangs, Liste bei Bedarf um 2 erhöhen
//ILC_MASK gibt an, das die Bitmaps masiert sind und ILC_COLOR32 die Farbtiefe.
</code></pre>
<p>Dannach kann man ganz normal Bilder in die Liste aufnehmen und diese werden dann auch mit 256 Farben oder mehr angezeigt.</p>
<p>Gruß<br />
Stomper</p>
]]></description><link>https://www.c-plusplus.net/forum/post/375007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/375007</guid><dc:creator><![CDATA[Stomper]]></dc:creator><pubDate>Sat, 18 Oct 2003 16:56:32 GMT</pubDate></item><item><title><![CDATA[Reply to Tree View mit ImageList aber mit 256 Farben... on Sat, 01 Nov 2003 08:22:49 GMT]]></title><description><![CDATA[<p>Stomper schrieb:</p>
<blockquote>
<p>Hi, ich habe in VisualC++ ein TreeView und eine ImageList erstellt, das schaut Folgendermaßen aus:</p>
<pre><code class="language-cpp">m_ImageList . Create ( 32, 32, TRUE, 9, 2) ;
// Images mit 32 x 32 Pixel; 8 Elemente anfangs, Liste bei Bedarf um 2 erhöhen
    
HICON hIcon ;

hIcon = AfxGetApp() -&gt; LoadIcon ( IDI_CD ) ; // Icon Nr. 0
m_ImageList . Add ( hIcon ) ;
</code></pre>
<p>Ich füge Icons als Images hinzu, die haben auch 256 Farben und ich habe Sie auch so abgespeichert. Doch wenn Ich das Programm laufen lasse, zeigt er mir die Bilder nur mit 16 Farben an.<br />
Was mach ich falsch??</p>
<p>Wäre cool wenn mir jemand helfen könne</p>
<p>Gruß<br />
Stomper</p>
</blockquote>
<p>kannst du mir sagen wie du die image liste zum tree hinzufügst, bitte!</p>
<p>habe das auch für mein tree überlegt.</p>
<p>aber muss da noch etwas nachforschen.</p>
<p>momentan sieht das etwa so aus:</p>
<p>[-]item1<br />
-item1.1<br />
-item1.2<br />
[+]item2</p>
<p>ist es möglich images so zu verknüpfen, dass [-], [+], - jeweils verschiedene icons besitzen?</p>
<p>würde sicherlich sehr ansprechend wirken.</p>
<p>hat da jemand eine idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/384132</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/384132</guid><dc:creator><![CDATA[alex-t]]></dc:creator><pubDate>Sat, 01 Nov 2003 08:22:49 GMT</pubDate></item></channel></rss>