<?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[Dialogfarbe ändern?]]></title><description><![CDATA[<p>Hi,</p>
<p>wie kann man die Hintergrundfarbe eines Dialogs ändern?</p>
<p>Im Petzold habe ich diesen Code gefunden:<br />
DeleteObject ((HBRUSH) SetClassLong (hwnd, GCL_HBRBACKGROUND, (LONG)CreateSolidBrush (RGB(255, 0, 0))));</p>
<p>Doch der will leider nicht, muss ich dabei irgendwas beachten damit es geht?!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/160914/dialogfarbe-ändern</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 16:57:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/160914.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Oct 2006 09:50:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dialogfarbe ändern? on Sun, 01 Oct 2006 09:50:21 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>wie kann man die Hintergrundfarbe eines Dialogs ändern?</p>
<p>Im Petzold habe ich diesen Code gefunden:<br />
DeleteObject ((HBRUSH) SetClassLong (hwnd, GCL_HBRBACKGROUND, (LONG)CreateSolidBrush (RGB(255, 0, 0))));</p>
<p>Doch der will leider nicht, muss ich dabei irgendwas beachten damit es geht?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147310</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147310</guid><dc:creator><![CDATA[Razoror]]></dc:creator><pubDate>Sun, 01 Oct 2006 09:50:21 GMT</pubDate></item><item><title><![CDATA[Reply to Dialogfarbe ändern? on Sun, 01 Oct 2006 09:57:27 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">static HBRUSH hBrush;

case WM_CREATE:
   hBrush = (HBRUSH) CreateSolidBrush (RGB ( 0, 0, 0));
   return(0);

case WM_CTLCOLORDLG:
   return (BOOL) hBrush;

case WM_DESTROY:
   DeleteObject (hBrush); // wegen GDI Leck
   PostQuitMessage (0);
   return(0);
</code></pre>
<p>Quelle : <a href="http://winapi.net/index.php?inhalt=s13" rel="nofollow">http://winapi.net/index.php?inhalt=s13</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1147311</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1147311</guid><dc:creator><![CDATA[PhoeNix_FasT]]></dc:creator><pubDate>Sun, 01 Oct 2006 09:57:27 GMT</pubDate></item></channel></rss>