<?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[OnCtlColor | Hintergrundfarbe eines CEdit-Controls]]></title><description><![CDATA[<p>hallo,</p>
<p>ich möchte die Hintergrunfarbe von meinem CEdit-Control ändern.<br />
ich habe habe dazu den Event-Handler OnCtlColor() benutzt und folgendes<br />
eingefügt:</p>
<pre><code>...
pDC-&gt;SetBkColor(RGB(255,0,0));
pDC-&gt;SetTextColor(RGB(0,0,255));
hbr = (HBRUSH) RGB(255,0,0);
...
</code></pre>
<p>es ist aber nur so das die Schrift Blau und der Hintergrund der Schrift<br />
Rot erscheint!</p>
<p>Ich möchte aber das komplette CEdit in Rot haben!<br />
wie kann ich das handeln?</p>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/161144/onctlcolor-hintergrundfarbe-eines-cedit-controls</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 00:09:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161144.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Oct 2006 20:24:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OnCtlColor | Hintergrundfarbe eines CEdit-Controls on Tue, 03 Oct 2006 20:24:44 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>ich möchte die Hintergrunfarbe von meinem CEdit-Control ändern.<br />
ich habe habe dazu den Event-Handler OnCtlColor() benutzt und folgendes<br />
eingefügt:</p>
<pre><code>...
pDC-&gt;SetBkColor(RGB(255,0,0));
pDC-&gt;SetTextColor(RGB(0,0,255));
hbr = (HBRUSH) RGB(255,0,0);
...
</code></pre>
<p>es ist aber nur so das die Schrift Blau und der Hintergrund der Schrift<br />
Rot erscheint!</p>
<p>Ich möchte aber das komplette CEdit in Rot haben!<br />
wie kann ich das handeln?</p>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148894</guid><dc:creator><![CDATA[babelduo]]></dc:creator><pubDate>Tue, 03 Oct 2006 20:24:44 GMT</pubDate></item><item><title><![CDATA[Reply to OnCtlColor | Hintergrundfarbe eines CEdit-Controls on Wed, 04 Oct 2006 05:14:18 GMT]]></title><description><![CDATA[<p>Wenn Du dem Control sagst, dass es seinen Hintergrund Rot färben (pDC-&gt;SetBkColor(RGB(255,0,0));) und darauf blaue Schrift (pDC-&gt;SetTextColor(RGB(0,0,255));<br />
) darstellen soll, dann tut es das auch.<br />
Du willst roten Text auf rotem Hintergrund darstellen oder hab ich da was falsch verstanden? Wozu brauchst Du den Brush in der letzten Zeile?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148965</guid><dc:creator><![CDATA[AndyDD]]></dc:creator><pubDate>Wed, 04 Oct 2006 05:14:18 GMT</pubDate></item><item><title><![CDATA[Reply to OnCtlColor | Hintergrundfarbe eines CEdit-Controls on Wed, 04 Oct 2006 07:45:45 GMT]]></title><description><![CDATA[<p>Technical Notes 062 lesen:<br />
<a href="http://msdn2.microsoft.com/en-us/library/eeah46xd.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/eeah46xd.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149028</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149028</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 04 Oct 2006 07:45:45 GMT</pubDate></item><item><title><![CDATA[Reply to OnCtlColor | Hintergrundfarbe eines CEdit-Controls on Wed, 04 Oct 2006 11:23:56 GMT]]></title><description><![CDATA[<p>ja danke ich ich habs nun kapiert und hinbekommen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1149141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1149141</guid><dc:creator><![CDATA[babelduo]]></dc:creator><pubDate>Wed, 04 Oct 2006 11:23:56 GMT</pubDate></item></channel></rss>