<?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[In einer CImageList Symbole mit mehr als 16 Farben darstellen?]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich möchte aus einer Toolbar eine CImageList erstellen und in einer Liste benutzen. Nur stehe ich immer vor dem Problem, das die Symbole nur 16 Farben haben, also Übergänge stark sichtbar sind. Aber im ResourenEditor sehe ich das Symbol in allen Farben, wie kann das sein?</p>
<pre><code class="language-cpp">c_imglist.Create(IDR_TOOLBAR_VEREIN,16,6,RGB(191,191,191));
m_vereinliste.SetImageList(&amp;c_imglist,LVSIL_SMALL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/51561/in-einer-cimagelist-symbole-mit-mehr-als-16-farben-darstellen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 14:20:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/51561.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Oct 2003 11:01:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to In einer CImageList Symbole mit mehr als 16 Farben darstellen? on Sat, 11 Oct 2003 11:01:44 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich möchte aus einer Toolbar eine CImageList erstellen und in einer Liste benutzen. Nur stehe ich immer vor dem Problem, das die Symbole nur 16 Farben haben, also Übergänge stark sichtbar sind. Aber im ResourenEditor sehe ich das Symbol in allen Farben, wie kann das sein?</p>
<pre><code class="language-cpp">c_imglist.Create(IDR_TOOLBAR_VEREIN,16,6,RGB(191,191,191));
m_vereinliste.SetImageList(&amp;c_imglist,LVSIL_SMALL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/370255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/370255</guid><dc:creator><![CDATA[hronny]]></dc:creator><pubDate>Sat, 11 Oct 2003 11:01:44 GMT</pubDate></item><item><title><![CDATA[Reply to In einer CImageList Symbole mit mehr als 16 Farben darstellen? on Sat, 11 Oct 2003 11:15:09 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">TreeImageList-&gt;Create(24,24,ILC_COLOR24 | ILC_MASK,0,1);
</code></pre>
<p>So funktionierts jedenfalls bei mir, mit TrueColor. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/370262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/370262</guid><dc:creator><![CDATA[CrazyOwl]]></dc:creator><pubDate>Sat, 11 Oct 2003 11:15:09 GMT</pubDate></item><item><title><![CDATA[Reply to In einer CImageList Symbole mit mehr als 16 Farben darstellen? on Sat, 11 Oct 2003 11:18:49 GMT]]></title><description><![CDATA[<p>Wo kann ich da meine ID aus der Resource angeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/370266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/370266</guid><dc:creator><![CDATA[hronny]]></dc:creator><pubDate>Sat, 11 Oct 2003 11:18:49 GMT</pubDate></item><item><title><![CDATA[Reply to In einer CImageList Symbole mit mehr als 16 Farben darstellen? on Sat, 11 Oct 2003 12:03:33 GMT]]></title><description><![CDATA[<p>Weiß nicht, schau mal da: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cimagelist.3a3a.create.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cimagelist.3a3a.create.asp</a></p>
<p>Aber im Prinzip sollte doch nur das ILC_COLOR24 für die Farbtiefe relevant sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/370298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/370298</guid><dc:creator><![CDATA[CrazyOwl]]></dc:creator><pubDate>Sat, 11 Oct 2003 12:03:33 GMT</pubDate></item><item><title><![CDATA[Reply to In einer CImageList Symbole mit mehr als 16 Farben darstellen? on Sat, 11 Oct 2003 12:22:44 GMT]]></title><description><![CDATA[<p>Ich habs jetzt so gelöst:</p>
<pre><code class="language-cpp">c_imglist.Create(16,15,ILC_COLOR24 | ILC_MASK,0,1);
CBitmap bm;
bm.LoadBitmap(IDB_BITMAP1);
c_imglist.Add(&amp;bm, RGB(191,191,191));
bm.DeleteObject();

m_vereinliste.SetImageList(&amp;c_imglist,LVSIL_SMALL);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/370305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/370305</guid><dc:creator><![CDATA[hronny]]></dc:creator><pubDate>Sat, 11 Oct 2003 12:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to In einer CImageList Symbole mit mehr als 16 Farben darstellen? on Sat, 11 Oct 2003 16:04:42 GMT]]></title><description><![CDATA[<p>am besten sollte man den ILC_COLOR32 Flag nehmen, falls man unter Windows XP standard Icons verwenden möchte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/370408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/370408</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Sat, 11 Oct 2003 16:04:42 GMT</pubDate></item></channel></rss>