<?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 von HPEN im nachhinein wechseln?!?]]></title><description><![CDATA[<p>hi, ich habe hier ein HPEN hPen mit den RGB( 0, 0, 0 ) created....<br />
kann ich nach seiner erschaffung die farbe des Pens imme rnoch aendern oder musste ich das object killn und ein neuen pen erstellen? wenns gehts waere es toll ihr wuerdet mich aufklären <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>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178603/farbe-von-hpen-im-nachhinein-wechseln</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 06:59:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178603.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Apr 2007 15:15:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Farbe von HPEN im nachhinein wechseln?!? on Thu, 12 Apr 2007 15:34:23 GMT]]></title><description><![CDATA[<p>hi, ich habe hier ein HPEN hPen mit den RGB( 0, 0, 0 ) created....<br />
kann ich nach seiner erschaffung die farbe des Pens imme rnoch aendern oder musste ich das object killn und ein neuen pen erstellen? wenns gehts waere es toll ihr wuerdet mich aufklären <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>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264762</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264762</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 12 Apr 2007 15:34:23 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe von HPEN im nachhinein wechseln?!? on Thu, 12 Apr 2007 15:32:35 GMT]]></title><description><![CDATA[<p>Eventuell:</p>
<blockquote>
<p>SetDCPenColor function sets the current device context (DC) pen color to the specified color value. If the device cannot represent the specified color value, the color is set to the nearest physical color.</p>
</blockquote>
<p>Aber ansonsten sind Pens eigentlich etwas Statisches.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264776</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264776</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 12 Apr 2007 15:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe von HPEN im nachhinein wechseln?!? on Thu, 12 Apr 2007 15:36:24 GMT]]></title><description><![CDATA[<p>ok danke, nach der funktion hab ich gesucht... haette auch nicht gedacht das man den pen haette killn muessen und dann nen neuen anlegen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264779</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 12 Apr 2007 15:36:24 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe von HPEN im nachhinein wechseln?!? on Thu, 12 Apr 2007 16:01:01 GMT]]></title><description><![CDATA[<p>Du kannst soviele Stifte erzeugen, wie und wann Du willst.</p>
<p>WM_CREATE:<br />
hPen = CreatePen(lilablassblau);</p>
<p>WM_PAINT:<br />
oldpen = SelectObject(hdc, hPen);<br />
SelectObject(hdc, oldpen);</p>
<p>WM_DESTROY:<br />
DeleteObject(hPen);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264799</guid><dc:creator><![CDATA[keksekekse]]></dc:creator><pubDate>Thu, 12 Apr 2007 16:01:01 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe von HPEN im nachhinein wechseln?!? on Thu, 12 Apr 2007 16:28:44 GMT]]></title><description><![CDATA[<p>keksekekse schrieb:</p>
<blockquote>
<p>Du kannst soviele Stifte erzeugen, wie und wann Du willst.</p>
<p>WM_CREATE:<br />
hPen = CreatePen(lilablassblau);</p>
<p>WM_PAINT:<br />
oldpen = SelectObject(hdc, hPen);<br />
SelectObject(hdc, oldpen);</p>
<p>WM_DESTROY:<br />
DeleteObject(hPen);</p>
</blockquote>
<p>ich weiß wie man und wo man ne pen erstellt und wie man mit ihm arbeitet -.-<br />
meine frage war nur wie ich von einem bereits existierenden pen die color aendere.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/201">@SideWinder</a> hab das mal mit SetDCPenColor( hPen, RGB( 255, 0, 0 ) ); ausprobiert. funktioniert irgendwie nicht ?!</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264818</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264818</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 12 Apr 2007 16:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe von HPEN im nachhinein wechseln?!? on Thu, 12 Apr 2007 16:35:37 GMT]]></title><description><![CDATA[<p>Warum ließt Du nicht einfach mal in der MSDN nach ... das muss sooo schwer sein:</p>
<p>MSDN schrieb:</p>
<blockquote>
<p>COLORREF SetDCPenColor(<br />
<strong>HDC</strong> hdc, // handle to DC<br />
COLORREF crColor // new pen color<br />
);</p>
</blockquote>
<p>Nix HPEN im 1. Parameter. Du musst den HDC angeben.<br />
Quelle <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /> <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_3ub6.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_3ub6.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1264824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264824</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Thu, 12 Apr 2007 16:35:37 GMT</pubDate></item><item><title><![CDATA[Reply to Farbe von HPEN im nachhinein wechseln?!? on Thu, 12 Apr 2007 16:51:13 GMT]]></title><description><![CDATA[<p>jetz funktionierts, dnake <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/1264832</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1264832</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Thu, 12 Apr 2007 16:51:13 GMT</pubDate></item></channel></rss>