<?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[Hintergrundfarbe von Controls in TabCtrl]]></title><description><![CDATA[<p>Wenn ich in meiner TabCtrl die Hintergrundfarbe mit OnCtlColor() ändere, verändert sich auch die Hintergrundfarbe der ComboBox. Mit OnCtlColor habe ich es nicht geschafft die Hintergrundfarbe der ComboBox zu ändern.</p>
<pre><code class="language-cpp">/* set color */
HBRUSH CLanguage::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	if (pWnd-&gt;GetDlgCtrlID() == IDC_LANGUAGE_SELECTION)
	{
		/* make the background transparent */
		pDC-&gt;SetBkMode(TRANSPARENT);

		/* Set the text color */
		pDC-&gt;SetTextColor(TEXT_COLOR);

		/* Background-Color  of the Combobox, white */
		return hBrush2;
	}
	/* Background-Color of the Dialog, grey */
	return hBrush1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/180908/hintergrundfarbe-von-controls-in-tabctrl</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 02:59:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180908.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 May 2007 07:30:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hintergrundfarbe von Controls in TabCtrl on Tue, 08 May 2007 07:30:37 GMT]]></title><description><![CDATA[<p>Wenn ich in meiner TabCtrl die Hintergrundfarbe mit OnCtlColor() ändere, verändert sich auch die Hintergrundfarbe der ComboBox. Mit OnCtlColor habe ich es nicht geschafft die Hintergrundfarbe der ComboBox zu ändern.</p>
<pre><code class="language-cpp">/* set color */
HBRUSH CLanguage::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	if (pWnd-&gt;GetDlgCtrlID() == IDC_LANGUAGE_SELECTION)
	{
		/* make the background transparent */
		pDC-&gt;SetBkMode(TRANSPARENT);

		/* Set the text color */
		pDC-&gt;SetTextColor(TEXT_COLOR);

		/* Background-Color  of the Combobox, white */
		return hBrush2;
	}
	/* Background-Color of the Dialog, grey */
	return hBrush1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1280670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280670</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 08 May 2007 07:30:37 GMT</pubDate></item><item><title><![CDATA[Reply to Hintergrundfarbe von Controls in TabCtrl on Tue, 08 May 2007 09:59:54 GMT]]></title><description><![CDATA[<p>Dann haben die beiden wohl die selbe ID!<br />
Warum prüfst Du nicht auch den Wert von nCtlColor?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280748</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280748</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 08 May 2007 09:59:54 GMT</pubDate></item><item><title><![CDATA[Reply to Hintergrundfarbe von Controls in TabCtrl on Tue, 08 May 2007 10:05:32 GMT]]></title><description><![CDATA[<p>Die selbe ID haben die nicht. Was ist denn nCtlColor?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280754</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280754</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 08 May 2007 10:05:32 GMT</pubDate></item><item><title><![CDATA[Reply to Hintergrundfarbe von Controls in TabCtrl on Tue, 08 May 2007 10:31:01 GMT]]></title><description><![CDATA[<p>Wenn ich die Liste öffne ist der Hintergrund grau, er sollte weiß sein.<br />
Nur dort wo die Strings stehen ist er weiß.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280771</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Tue, 08 May 2007 10:31:01 GMT</pubDate></item><item><title><![CDATA[Reply to Hintergrundfarbe von Controls in TabCtrl on Tue, 08 May 2007 10:40:08 GMT]]></title><description><![CDATA[<p>maRKus23 schrieb:</p>
<blockquote>
<p>Die selbe ID haben die nicht. Was ist denn nCtlColor?</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_down"
      title=":-1:"
      alt="👎"
    /></p>
<p>Die benutzt OnCtlColor doch, oder?<br />
OnCtlColor(CDC* pDC, CWnd* pWnd, UINT <em><strong>nCtlColor</strong></em>)<br />
Schon mal was von Doku gehört?<br />
<a href="http://msdn2.microsoft.com/en-us/library/0wwk06hc(vs.80).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/0wwk06hc(vs.80).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1280776</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1280776</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 08 May 2007 10:40:08 GMT</pubDate></item></channel></rss>