<?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[Rechteck und Timer]]></title><description><![CDATA[<p>hallo,<br />
ich erstelle einen timer der in einem intervall von zehn millisekunden mein rechteck erweitert, einmal scrollt es herunter und einmal hoch.</p>
<p>das runterscrollen klappt super, aber wenn ich es wieder hochscrollen lasse dann sehe ich jede einzelne abstufung...<br />
beim runterscrollen uebermalt es seinen eigenen bereich ja immer wieder aber wie regele ich das anderherum?</p>
<p>ich hoffe das was jetzt nicht zu bloed erklaert.</p>
<pre><code class="language-cpp">case WM_TIMER:
		{
			switch(wParam)
			{
			case 2:
				hDC = GetDC(hWnd);

				if(l &lt;= 200)
				{
					Rectangle(hDC, 200, 10, 300, 10 + l);
					l += 7;
				}

				else
				{
					l = 200;
					KillTimer(hWnd, 2);
				}

				ReleaseDC(hWnd, hDC);		
				break;

			case 3:
				hDC = GetDC(hWnd);

				if(l &gt;= 7)
				{
					Rectangle(hDC, 200, 10, 300, l);
					l -= 7;
				}

				else
				{
					l = 7;
					KillTimer(hWnd, 3);
					l = 200;
				}

				ReleaseDC(hWnd, hDC);
			}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/113860/rechteck-und-timer</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 21:16:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/113860.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Jun 2005 16:36:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rechteck und Timer on Mon, 27 Jun 2005 16:36:56 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich erstelle einen timer der in einem intervall von zehn millisekunden mein rechteck erweitert, einmal scrollt es herunter und einmal hoch.</p>
<p>das runterscrollen klappt super, aber wenn ich es wieder hochscrollen lasse dann sehe ich jede einzelne abstufung...<br />
beim runterscrollen uebermalt es seinen eigenen bereich ja immer wieder aber wie regele ich das anderherum?</p>
<p>ich hoffe das was jetzt nicht zu bloed erklaert.</p>
<pre><code class="language-cpp">case WM_TIMER:
		{
			switch(wParam)
			{
			case 2:
				hDC = GetDC(hWnd);

				if(l &lt;= 200)
				{
					Rectangle(hDC, 200, 10, 300, 10 + l);
					l += 7;
				}

				else
				{
					l = 200;
					KillTimer(hWnd, 2);
				}

				ReleaseDC(hWnd, hDC);		
				break;

			case 3:
				hDC = GetDC(hWnd);

				if(l &gt;= 7)
				{
					Rectangle(hDC, 200, 10, 300, l);
					l -= 7;
				}

				else
				{
					l = 7;
					KillTimer(hWnd, 3);
					l = 200;
				}

				ReleaseDC(hWnd, hDC);
			}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/818444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818444</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Mon, 27 Jun 2005 16:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Mon, 27 Jun 2005 16:58:12 GMT]]></title><description><![CDATA[<p>nimm statt rectangle einfach ein window, dann sorgt windows automatisch dafür, dass der hintergrund wieder hergestellt wird. wenn nicht, musste den hintergrund selber restaurieren, damit's nicht flackert offscreen-buffering einsetzen, eine sprite-library benutzen oder sowas.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818453</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Mon, 27 Jun 2005 16:58:12 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Mon, 27 Jun 2005 17:02:55 GMT]]></title><description><![CDATA[<p>jo, danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/818454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/818454</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Mon, 27 Jun 2005 17:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Sat, 02 Jul 2005 22:14:55 GMT]]></title><description><![CDATA[<p>Moh, dein Erdkunde-Programme enthält heftige GDI-Leaks.<br />
Habe es hier rein geschrieben, weil man nicht als Unregistrierter ins Projekte-Forum posten kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/822423</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822423</guid><dc:creator><![CDATA[*push*]]></dc:creator><pubDate>Sat, 02 Jul 2005 22:14:55 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Sun, 03 Jul 2005 06:42:14 GMT]]></title><description><![CDATA[<p>ja, das hab ich jetzt auch erst bemerkt. aber das war ja der eigentliche grund, warum ich es hier hereigestellt habe <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>was meinst du denn alles?</p>
<p>mir ist bis jetzt nur aufgefallen, dass die fragen nicht neu gezeichnet werden, inklusive dem rechteck das die fragen umrandet...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/822494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822494</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Sun, 03 Jul 2005 06:42:14 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Sun, 03 Jul 2005 08:37:32 GMT]]></title><description><![CDATA[<p>die fragen werden jetzt auch neu gezeicheichnet, findet noch jemand schwerwiegende fehler??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/822520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822520</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Sun, 03 Jul 2005 08:37:32 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Sun, 03 Jul 2005 09:37:27 GMT]]></title><description><![CDATA[<p>ob noch gdi leaks drin sind erkennst du im task-manager. da kannst du ne spalte hinzufügen wo dann die anzahl der gdi objekte für jeden prozess angezeigt werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/822552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822552</guid><dc:creator><![CDATA[*push*]]></dc:creator><pubDate>Sun, 03 Jul 2005 09:37:27 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Sun, 03 Jul 2005 09:58:33 GMT]]></title><description><![CDATA[<p>Win98se <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/822560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822560</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Sun, 03 Jul 2005 09:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Sun, 03 Jul 2005 10:04:19 GMT]]></title><description><![CDATA[<p><a href="http://www.sysinternals.com" rel="nofollow">www.sysinternals.com</a> =&gt; Process Explorer downloaden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/822565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822565</guid><dc:creator><![CDATA[*push*]]></dc:creator><pubDate>Sun, 03 Jul 2005 10:04:19 GMT</pubDate></item><item><title><![CDATA[Reply to Rechteck und Timer on Sun, 03 Jul 2005 10:30:27 GMT]]></title><description><![CDATA[<p>cool, thx</p>
<p>//edit: wie kann ich jetztz meine GDI-Objekte anzeigen lassen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/822573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822573</guid><dc:creator><![CDATA[Moh]]></dc:creator><pubDate>Sun, 03 Jul 2005 10:30:27 GMT</pubDate></item></channel></rss>