<?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[Treeview transparente icons]]></title><description><![CDATA[<p>guten abend.<br />
Fang grad an mit treeviews rumzuwerkeln und jetzt steh ich vor nem kleinen Problem.<br />
Ich will nen Icon vor die Einträge setzen. Das ist auch ein normales icon mit transparentem hintergrund ... warum wird das transparente schwarz dargestellt?? Mach ich irgendwo was falsch?<br />
Das ist mein jetziger code:</p>
<pre><code class="language-cpp">hImList = ImageList_Create(16, 16, ILC_COLOR32, 1, 1);
    ImageList_AddIcon(hImList, (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IMAGEBREATHIRC), IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR | LR_LOADTRANSPARENT));

    TreeView_SetImageList(hWnd, hImList, TVSIL_NORMAL);
</code></pre>
<p>und ja, hWnd ist wirklich die var für den treeview (das ganze spielt sich inner klasse ab)</p>
<p>danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/103019/treeview-transparente-icons</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 12:07:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/103019.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Mar 2005 22:58:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Treeview transparente icons on Thu, 03 Mar 2005 22:58:12 GMT]]></title><description><![CDATA[<p>guten abend.<br />
Fang grad an mit treeviews rumzuwerkeln und jetzt steh ich vor nem kleinen Problem.<br />
Ich will nen Icon vor die Einträge setzen. Das ist auch ein normales icon mit transparentem hintergrund ... warum wird das transparente schwarz dargestellt?? Mach ich irgendwo was falsch?<br />
Das ist mein jetziger code:</p>
<pre><code class="language-cpp">hImList = ImageList_Create(16, 16, ILC_COLOR32, 1, 1);
    ImageList_AddIcon(hImList, (HICON)LoadImage(hInstance, MAKEINTRESOURCE(IMAGEBREATHIRC), IMAGE_ICON, 32, 32, LR_DEFAULTCOLOR | LR_LOADTRANSPARENT));

    TreeView_SetImageList(hWnd, hImList, TVSIL_NORMAL);
</code></pre>
<p>und ja, hWnd ist wirklich die var für den treeview (das ganze spielt sich inner klasse ab)</p>
<p>danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/737175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/737175</guid><dc:creator><![CDATA[jghj]]></dc:creator><pubDate>Thu, 03 Mar 2005 22:58:12 GMT</pubDate></item><item><title><![CDATA[Reply to Treeview transparente icons on Sat, 05 Mar 2005 18:30:44 GMT]]></title><description><![CDATA[<p>will mir keiner helfen? nurn link würd ja auch reichen ... aber ich hab nix gefunden <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/738272</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/738272</guid><dc:creator><![CDATA[jghj]]></dc:creator><pubDate>Sat, 05 Mar 2005 18:30:44 GMT</pubDate></item><item><title><![CDATA[Reply to Treeview transparente icons on Sun, 06 Mar 2005 08:08:39 GMT]]></title><description><![CDATA[<p>War in ImageList_Create nicht zusätzlich das Flag ILC_MASK notwendig?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/738541</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/738541</guid><dc:creator><![CDATA[a]]></dc:creator><pubDate>Sun, 06 Mar 2005 08:08:39 GMT</pubDate></item><item><title><![CDATA[Reply to Treeview transparente icons on Sun, 06 Mar 2005 14:48:12 GMT]]></title><description><![CDATA[<p>ohja danke das wars <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="🙂"
    /> hätt nich gedacht dass ich des brauch weil sichs doch da um 2 bilder handelt...aber is ja eigentlich logisch. danke aber8)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/738777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/738777</guid><dc:creator><![CDATA[jghj]]></dc:creator><pubDate>Sun, 06 Mar 2005 14:48:12 GMT</pubDate></item><item><title><![CDATA[Reply to Treeview transparente icons on Sun, 06 Mar 2005 15:59:06 GMT]]></title><description><![CDATA[<p>achja, kann mir bitte vielleicht gleich noch jemand sagen, wie ich die hintergrund farbe von nem treeview änder? Genauso wie vonner listbox und richedit ... aber das dürfte ja gleich gehen nehme ich an? mit subclassen und WM_PAINT mappen hab ichs schon probiert, aber dann sind die Inhalte weg. Und ja, ich hab die DCs freigegeben und auch CallWindowProc() aufgerufen.<br />
danke schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/738816</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/738816</guid><dc:creator><![CDATA[jghj]]></dc:creator><pubDate>Sun, 06 Mar 2005 15:59:06 GMT</pubDate></item></channel></rss>