<?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[Probleme beim Darstellen von DrawRoutinen]]></title><description><![CDATA[<p>Hi,</p>
<p>ich würd gerne in einem Dialog auf das IDC_OPENGLPROGRESS Item manuell etwas drauf zeichnen. Ich hab da auch schon ein paar sachen gefunden, nur tut sich da einfach nix.</p>
<p>Hier mal der Code der nüscht tut, vielleicht fällt ja jemanden was auf.</p>
<pre><code class="language-cpp">CPaintDC tDc( &amp;m_ctrlGlProgress ) ; 

    CRect rect1 ;
	  CBrush myBrush;
	  CPen GatePen(PS_SOLID,2,RGB(55,100,99));
	  CPen TrPen(PS_SOLID,2,RGB(0,255,255));
	  CPen AvPen(PS_SOLID,2,RGB(255,255,0));

	  myBrush.CreateSolidBrush(RGB(0,0,0));

    tDc.SelectObject(&amp;TrPen);

    m_ctrlGlProgress.GetClientRect( rect1 ) ;
    tDc.FillRect( &amp;rect1, &amp;myBrush );
    tDc.FrameRect(&amp;rect1, &amp;CBrush(0xffffff));
	  tDc.DrawEdge( &amp;rect1, EDGE_BUMP, BF_RECT);

	  tDc.MoveTo( rect1.left,(rect1.bottom+rect1.top)/2) ;
	  tDc.LineTo( rect1.right,(rect1.bottom+rect1.top)/2) ;

	  tDc.MoveTo( (rect1.left+rect1.right)/2,rect1.top) ;
	  tDc.LineTo( (rect1.left+rect1.right)/2,rect1.bottom) ;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/70492/probleme-beim-darstellen-von-drawroutinen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 01:59:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/70492.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Apr 2004 08:43:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme beim Darstellen von DrawRoutinen on Thu, 08 Apr 2004 12:23:07 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich würd gerne in einem Dialog auf das IDC_OPENGLPROGRESS Item manuell etwas drauf zeichnen. Ich hab da auch schon ein paar sachen gefunden, nur tut sich da einfach nix.</p>
<p>Hier mal der Code der nüscht tut, vielleicht fällt ja jemanden was auf.</p>
<pre><code class="language-cpp">CPaintDC tDc( &amp;m_ctrlGlProgress ) ; 

    CRect rect1 ;
	  CBrush myBrush;
	  CPen GatePen(PS_SOLID,2,RGB(55,100,99));
	  CPen TrPen(PS_SOLID,2,RGB(0,255,255));
	  CPen AvPen(PS_SOLID,2,RGB(255,255,0));

	  myBrush.CreateSolidBrush(RGB(0,0,0));

    tDc.SelectObject(&amp;TrPen);

    m_ctrlGlProgress.GetClientRect( rect1 ) ;
    tDc.FillRect( &amp;rect1, &amp;myBrush );
    tDc.FrameRect(&amp;rect1, &amp;CBrush(0xffffff));
	  tDc.DrawEdge( &amp;rect1, EDGE_BUMP, BF_RECT);

	  tDc.MoveTo( rect1.left,(rect1.bottom+rect1.top)/2) ;
	  tDc.LineTo( rect1.right,(rect1.bottom+rect1.top)/2) ;

	  tDc.MoveTo( (rect1.left+rect1.right)/2,rect1.top) ;
	  tDc.LineTo( (rect1.left+rect1.right)/2,rect1.bottom) ;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/497387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497387</guid><dc:creator><![CDATA[Jason_Frost]]></dc:creator><pubDate>Thu, 08 Apr 2004 12:23:07 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Darstellen von DrawRoutinen on Thu, 08 Apr 2004 08:55:59 GMT]]></title><description><![CDATA[<p>1.) Wozu ein new?<br />
2.) Ein PaintDC ist nur in OnPaint in Ordnung, das ist dir klar?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/497396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497396</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Thu, 08 Apr 2004 08:55:59 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Darstellen von DrawRoutinen on Thu, 08 Apr 2004 10:51:15 GMT]]></title><description><![CDATA[<p>ok nu gehts endlich <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="😉"
    /> danke für die Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/497397</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497397</guid><dc:creator><![CDATA[Jason_Frost]]></dc:creator><pubDate>Thu, 08 Apr 2004 10:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Darstellen von DrawRoutinen on Thu, 08 Apr 2004 10:48:45 GMT]]></title><description><![CDATA[<p>Du musst es natürlich im OnPaint des Items machen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/497471</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497471</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Thu, 08 Apr 2004 10:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Darstellen von DrawRoutinen on Thu, 08 Apr 2004 12:26:08 GMT]]></title><description><![CDATA[<p>wie gesagt nu gehts, hat auch im OnPaint drin nur, leider an der falschen stelle !?!?! typischer Fall von geistiger Umnachtung.</p>
<p>Nur hab ich aber ein anderen Problem, wenn ich zeichne, aktualisiert er erst die Oberfläche wenn ich den dialog minimiere und wieder maximiere bzw. wenn ich ein anderes Fenster drüberschieben und wieder weg tu.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/497575</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497575</guid><dc:creator><![CDATA[Jason_Frost]]></dc:creator><pubDate>Thu, 08 Apr 2004 12:26:08 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Darstellen von DrawRoutinen on Tue, 13 Apr 2004 06:24:05 GMT]]></title><description><![CDATA[<p>hmm jetzt hab ich zwar am Wochenende ziemlich viel rumprobiert aber aktualisieren tut er das Feld immernoch net. Hat denn niemand eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/500181</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/500181</guid><dc:creator><![CDATA[Jason_Frost]]></dc:creator><pubDate>Tue, 13 Apr 2004 06:24:05 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme beim Darstellen von DrawRoutinen on Wed, 14 Apr 2004 11:09:14 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>versuch es mal mit Invalidate() oder InvalidateRect()</p>
<p>Gruß Hagen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/501228</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/501228</guid><dc:creator><![CDATA[HagenS]]></dc:creator><pubDate>Wed, 14 Apr 2004 11:09:14 GMT</pubDate></item></channel></rss>