<?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[Farbe des Fensterhintergrunds selber erstellen]]></title><description><![CDATA[<p>Hallo</p>
<p>Wie kann ich den Hintergrund des Fensters selber einstellen.</p>
<p>Also ich habe es so versucht:</p>
<pre><code class="language-cpp">void Dark3DCubeEngine::SetWindowColor(int R, int G, int B)
{
	m_WindowColor = RGB(R, G, B); // das ist eine int Variable
}

wc.hbrBackground	= (HBRUSH)GetStockObject(m_WindowColor);
</code></pre>
<p>Doch wenn ich das Programm dann teste, kommt ein schwarzer Hintergrund raus.</p>
<p>Kann mir da jemand helfen, wie ich den Hintergrund selber wählen kann.</p>
<p>Gruss Patrick</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/242674/farbe-des-fensterhintergrunds-selber-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 17:34:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/242674.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Jun 2009 22:06:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Farbe des Fensterhintergrunds selber erstellen on Sat, 06 Jun 2009 22:06:19 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Wie kann ich den Hintergrund des Fensters selber einstellen.</p>
<p>Also ich habe es so versucht:</p>
<pre><code class="language-cpp">void Dark3DCubeEngine::SetWindowColor(int R, int G, int B)
{
	m_WindowColor = RGB(R, G, B); // das ist eine int Variable
}

wc.hbrBackground	= (HBRUSH)GetStockObject(m_WindowColor);
</code></pre>
<p>Doch wenn ich das Programm dann teste, kommt ein schwarzer Hintergrund raus.</p>
<p>Kann mir da jemand helfen, wie ich den Hintergrund selber wählen kann.</p>
<p>Gruss Patrick</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1722506</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1722506</guid><dc:creator><![CDATA[Eglifisch1]]></dc:creator><pubDate>Sat, 06 Jun 2009 22:06:19 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe des Fensterhintergrunds selber erstellen on Sat, 06 Jun 2009 22:46:38 GMT]]></title><description><![CDATA[<p>CreateSolidBrush</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1722515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1722515</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Sat, 06 Jun 2009 22:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe des Fensterhintergrunds selber erstellen on Sun, 07 Jun 2009 16:35:14 GMT]]></title><description><![CDATA[<p>Also dann kann ich es so schreiben:</p>
<pre><code class="language-cpp">void Dark3DCubeEngine::SetWindowColor(int R, int G, int B)
{
    m_WindowColor = RGB(R, G, B); // das ist eine int Variable
}

wc.hbrBackground    = (HBRUSH)CreateSolidBrush(m_WindowColor);
</code></pre>
<p>Ich habe das nun so probiert, doch es noch nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1722825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1722825</guid><dc:creator><![CDATA[Eglifisch1]]></dc:creator><pubDate>Sun, 07 Jun 2009 16:35:14 GMT</pubDate></item></channel></rss>