<?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[ListBox und Farben Frage]]></title><description><![CDATA[<p>Also ich hab eine Listbox und diese Einstellungen</p>
<pre><code class="language-cpp">case WM_CTLCOLORLISTBOX:
		SetBkMode ((HDC) wParam, TRANSPARENT);
		SetTextColor((HDC) wParam, RGB(0,255,0));	
		return (LONG) hBrush;
</code></pre>
<p>Jetzt moechte ich einen Eintrag bzw einen String in eine andere Farbe darstellen</p>
<pre><code class="language-cpp">SendDlgItemMessage(phDlg,IDC_PROCESSES,LB_ADDSTRING,0,(LPARAM)cBuffer);
</code></pre>
<p>Zum Beispiel das moechte ich in Blau , wie funktioniert das ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/156772/listbox-und-farben-frage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 22:33:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/156772.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 19 Aug 2006 22:14:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ListBox und Farben Frage on Sat, 19 Aug 2006 22:15:25 GMT]]></title><description><![CDATA[<p>Also ich hab eine Listbox und diese Einstellungen</p>
<pre><code class="language-cpp">case WM_CTLCOLORLISTBOX:
		SetBkMode ((HDC) wParam, TRANSPARENT);
		SetTextColor((HDC) wParam, RGB(0,255,0));	
		return (LONG) hBrush;
</code></pre>
<p>Jetzt moechte ich einen Eintrag bzw einen String in eine andere Farbe darstellen</p>
<pre><code class="language-cpp">SendDlgItemMessage(phDlg,IDC_PROCESSES,LB_ADDSTRING,0,(LPARAM)cBuffer);
</code></pre>
<p>Zum Beispiel das moechte ich in Blau , wie funktioniert das ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1120650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1120650</guid><dc:creator><![CDATA[PhoeNix_FasT]]></dc:creator><pubDate>Sat, 19 Aug 2006 22:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to ListBox und Farben Frage on Sat, 19 Aug 2006 22:40:40 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Ähnliches Problem ist auch in den WinAPI FAQ beschrieben:</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39371.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39371.html</a></p>
<p>BR<br />
Vinzenz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1120658</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1120658</guid><dc:creator><![CDATA[evilissimo]]></dc:creator><pubDate>Sat, 19 Aug 2006 22:40:40 GMT</pubDate></item></channel></rss>