<?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[ListView: Verschiedenfarbige Zeilen]]></title><description><![CDATA[<p>Hallo zusammen,<br />
Ich habe eine ListView und möchte nun einzelne Zeilen verschiedenfarbig Darstellen.<br />
Ich habe bereits das Makro: ListView_SetTextBkColor() gefunden, jedoch ist das nur für die gesamte ListView gültig.</p>
<p>Für Hinweise oder Beispiele wäre ich sehr dankbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/183998/listview-verschiedenfarbige-zeilen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 19:10:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/183998.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jun 2007 12:40:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ListView: Verschiedenfarbige Zeilen on Mon, 11 Jun 2007 12:40:56 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
Ich habe eine ListView und möchte nun einzelne Zeilen verschiedenfarbig Darstellen.<br />
Ich habe bereits das Makro: ListView_SetTextBkColor() gefunden, jedoch ist das nur für die gesamte ListView gültig.</p>
<p>Für Hinweise oder Beispiele wäre ich sehr dankbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303108</guid><dc:creator><![CDATA[dadevelopa]]></dc:creator><pubDate>Mon, 11 Jun 2007 12:40:56 GMT</pubDate></item><item><title><![CDATA[Reply to ListView: Verschiedenfarbige Zeilen on Mon, 11 Jun 2007 13:52:07 GMT]]></title><description><![CDATA[<p>Hier hast du n sehr gutes bsp. um in deinen ListView die Zeilen Farbig zu gestalten <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p><a href="http://www.codeproject.com/listctrl/listview.asp" rel="nofollow">Using ListView control under Win32 API</a></p>
<p>MFG Ascharan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303161</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303161</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Mon, 11 Jun 2007 13:52:07 GMT</pubDate></item><item><title><![CDATA[Reply to ListView: Verschiedenfarbige Zeilen on Tue, 12 Jun 2007 06:51:17 GMT]]></title><description><![CDATA[<p>Danke erst einmal.<br />
Und wie Färbe ich nun spezielle Zeilen ein, sprich Zeilen in welchen in einem bestimmten Feld ein bestimmter Text steht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303703</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303703</guid><dc:creator><![CDATA[dadevelopa]]></dc:creator><pubDate>Tue, 12 Jun 2007 06:51:17 GMT</pubDate></item><item><title><![CDATA[Reply to ListView: Verschiedenfarbige Zeilen on Tue, 12 Jun 2007 07:48:54 GMT]]></title><description><![CDATA[<p>Wenn du des Lesens mächtig bist wirst Du das in dem Link finden!<br />
Siehe der Abschnitt in dem NM_CUSTOMDRAW diskutiert wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303722</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303722</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 12 Jun 2007 07:48:54 GMT</pubDate></item><item><title><![CDATA[Reply to ListView: Verschiedenfarbige Zeilen on Tue, 12 Jun 2007 12:49:07 GMT]]></title><description><![CDATA[<p>Martin Richter schrieb:</p>
<blockquote>
<p>Wenn du des Lesens mächtig bist wirst Du das in dem Link finden!<br />
Siehe der Abschnitt in dem NM_CUSTOMDRAW diskutiert wird.</p>
</blockquote>
<p>er Hat recht sie das bsp. hier</p>
<pre><code>[cpp]
case CDDS_ITEMPREPAINT: //Before an item is drawn
{
         return CDRF_NOTIFYSUBITEMDRAW;
}
break;[/cpp]
</code></pre>
<p>ersezte es gegen</p>
<pre><code>[cpp]
case CDDS_ITEMPREPAINT: //Before an item is drawn
if (((int)lplvcd-&gt;nmcd.dwItemSpec%2)==0)
{
     //customize item appearance
     lplvcd-&gt;clrText   = RGB(0,0,0);
     lplvcd-&gt;clrTextBk = RGB(255,0,0);
     return CDRF_NEWFONT;
}else{
     lplvcd-&gt;clrText   = RGB(255,255,255);
     lplvcd-&gt;clrTextBk = RGB(0,0,0);

     return CDRF_NEWFONT;
 }
 break;
[/cpp]
</code></pre>
<p>Färbt jede zweite Zeile Rot oder Schwarz</p>
<p>MFG Ascharan <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303971</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Tue, 12 Jun 2007 12:49:07 GMT</pubDate></item></channel></rss>