<?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[CDC Problem]]></title><description><![CDATA[<p>Hallo</p>
<p>ich hab heir eine Zeichenfläche, worauf ich ein Pfeil zeichne.</p>
<p>Dieser Pfeil soll dann später mit Farbe gefüllt werden.</p>
<p>Dazu habe ich die Methode &quot;FloodFill&quot; gewählt und als Übergabeparameter einen beliebigen x und y Wert angegeben, der innerhalb des Pfeilbereichs liegt.</p>
<p>Lieder füllt der mir aber nicht den Pfeil, sondern gleich die ganze Zeichenfläche aus.</p>
<p>Liegt das vielleicht am PenStyle?</p>
<p>Da habe ich PS_SOLID</p>
<p>Zuerst war meine Vermutung, dass vielleicht irgendwo ein &quot;offener Pixel&quot; in dem Bereich ist und habe dann nur ein Rechteck zeichnen lassen. Aber das Ergebnis war leider das selbe.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153664/cdc-problem</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 08:44:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153664.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Jul 2006 13:16:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 13:16:43 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>ich hab heir eine Zeichenfläche, worauf ich ein Pfeil zeichne.</p>
<p>Dieser Pfeil soll dann später mit Farbe gefüllt werden.</p>
<p>Dazu habe ich die Methode &quot;FloodFill&quot; gewählt und als Übergabeparameter einen beliebigen x und y Wert angegeben, der innerhalb des Pfeilbereichs liegt.</p>
<p>Lieder füllt der mir aber nicht den Pfeil, sondern gleich die ganze Zeichenfläche aus.</p>
<p>Liegt das vielleicht am PenStyle?</p>
<p>Da habe ich PS_SOLID</p>
<p>Zuerst war meine Vermutung, dass vielleicht irgendwo ein &quot;offener Pixel&quot; in dem Bereich ist und habe dann nur ein Rechteck zeichnen lassen. Aber das Ergebnis war leider das selbe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100379</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Wed, 19 Jul 2006 13:16:43 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 13:29:35 GMT]]></title><description><![CDATA[<p>Warum machst de das denn nciht einfach mit nem Poligon? Das geht schnell und einfach... kannst direkt mit der entsprechenden Farbe fillen.. <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/1100388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100388</guid><dc:creator><![CDATA[(D)Evil_loggedof]]></dc:creator><pubDate>Wed, 19 Jul 2006 13:29:35 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 13:40:17 GMT]]></title><description><![CDATA[<p>ein Poligon?</p>
<p>hab ich noch nie was von gehört *gg*</p>
<p>wo find ich da denn Infos zu?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100404</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100404</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Wed, 19 Jul 2006 13:40:17 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 13:55:41 GMT]]></title><description><![CDATA[<p>CDC::Polygon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100416</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 19 Jul 2006 13:55:41 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 14:21:17 GMT]]></title><description><![CDATA[<p>aaaaaja</p>
<p>is ma krass am funktionieren</p>
<p>thx</p>
<p>aber irgendwas muss da doch anders sein als beim normalen MoveTo und LineTo</p>
<p>und wenns nur nen anderer PenStyle ist</p>
<p>weil eigentlich macht die Methode doch nix anderes als ein paar vordefinierte punkte miteinander zu verbinden...</p>
<p>...zumindest so wie das jetzt für mich ausschaut</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100440</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Wed, 19 Jul 2006 14:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 14:32:07 GMT]]></title><description><![CDATA[<p>Hast du denn einen Brush in deinen DC selektiert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100448</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 19 Jul 2006 14:32:07 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 14:34:58 GMT]]></title><description><![CDATA[<p>eeeehm....</p>
<p>neee, bei floodfill bin ich bis jetzt davon ausgegangen, dass er alles füllt, bis er nen pixel findet, der &quot;anders&quot; farbig ist</p>
<p>wenn ich z.b. ein Rechteck mit Rectangle zeichne, und dort den floodfill auf einen xy punkt innerhalb anwende, funktioniert das wunderbar</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100451</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Wed, 19 Jul 2006 14:34:58 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 14:36:27 GMT]]></title><description><![CDATA[<p>Selektiert doch mal einen Brush in deinen DC, bevor du Polygon aufrufst. Und schau dir CDC::SetPolyFillMode an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100454</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 19 Jul 2006 14:36:27 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Wed, 19 Jul 2006 14:56:43 GMT]]></title><description><![CDATA[<p>jo, alles klar</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100471</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Wed, 19 Jul 2006 14:56:43 GMT</pubDate></item><item><title><![CDATA[Reply to CDC Problem on Thu, 20 Jul 2006 08:28:22 GMT]]></title><description><![CDATA[<p>also irgendwie bin ich jetzt schon den ganzen morgen am rumhexen, aber der macht auch den brush net</p>
<p>keine ahnung warum. erst hab ich es mir angeschaut und selber implementiert, doch so sehr ich da auch nach fehlern gescuht habe, habe ich keine gefunden. hab dann schließlich das &quot;original&quot; auße MSDN kopiert und siehe da:</p>
<p>es läuft auch net *ggg*</p>
<p>ich hab ma echt keine ahnung mehr</p>
<pre><code class="language-cpp">LOGBRUSH logBrush;
	logBrush.lbStyle = BS_PATTERN;
	logBrush.lbColor = RGB(255, 0, 0);
	logBrush.lbHatch = HS_CROSS;

	// Declare an uninitialized CBrush ...
	CBrush brush;
	// ... and initialize it with the LOGBRUSH.
	brush.CreateBrushIndirect(&amp;logBrush);

	// Select the brush (and perhaps a pen) into
	// the device context.
	CBrush* pOldBrush = (CBrush*)pDC-&gt;SelectObject(&amp;brush);
	CPen* pOldPen = (CPen*)pDC-&gt;SelectStockObject(BLACK_PEN);

	// Have fun!
	pDC-&gt;Pie(CRect(100, 100, 300, 300), CPoint(0, 0), CPoint(50, 200));

	// Restore the original device context objects.
	pDC-&gt;SelectObject(pOldBrush);
	pDC-&gt;SelectObject(pOldPen);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1100837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100837</guid><dc:creator><![CDATA[MSS-Software]]></dc:creator><pubDate>Thu, 20 Jul 2006 08:28:22 GMT</pubDate></item></channel></rss>