<?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[Verschieb-Informationen]]></title><description><![CDATA[<p>Hi @ All.</p>
<p>ich möchte, wenn man das Fenster verschiebt, informationen erhalten, ob man das Fenster horizontal verschiebt oder vertikal oder beides.</p>
<p>aber das will nicht funktionieren.<br />
Die Rückmeldung erhalte ich erstmal über ein Piepen.</p>
<p>Aber er reagiert immer else.</p>
<pre><code class="language-cpp">POINT pWindow;
	case WM_CREATE:
		ClientToScreen(hWnd, &amp;pWindow);
		return 0;

	case WM_MOVE:
		if (pWindow.x == LOWORD(lParam))
		{
			// Wird vertikal befegt
		}
		if (pWindow.y == HIWORD(lParam))
		{
			// wird horizontal bewegt
			Beep(440,10);
		}
		else
		{
			// beides
		}
		pWindow.x = pWindow.y = 0;
		ClientToScreen(hWnd, &amp;pWindow);
		return 0;
</code></pre>
<p>Wisst ihr, was ich falsch gemacht habe?</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192493/verschieb-informationen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 21:46:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192493.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Sep 2007 09:51:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Verschieb-Informationen on Sat, 15 Sep 2007 09:55:18 GMT]]></title><description><![CDATA[<p>Hi @ All.</p>
<p>ich möchte, wenn man das Fenster verschiebt, informationen erhalten, ob man das Fenster horizontal verschiebt oder vertikal oder beides.</p>
<p>aber das will nicht funktionieren.<br />
Die Rückmeldung erhalte ich erstmal über ein Piepen.</p>
<p>Aber er reagiert immer else.</p>
<pre><code class="language-cpp">POINT pWindow;
	case WM_CREATE:
		ClientToScreen(hWnd, &amp;pWindow);
		return 0;

	case WM_MOVE:
		if (pWindow.x == LOWORD(lParam))
		{
			// Wird vertikal befegt
		}
		if (pWindow.y == HIWORD(lParam))
		{
			// wird horizontal bewegt
			Beep(440,10);
		}
		else
		{
			// beides
		}
		pWindow.x = pWindow.y = 0;
		ClientToScreen(hWnd, &amp;pWindow);
		return 0;
</code></pre>
<p>Wisst ihr, was ich falsch gemacht habe?</p>
<p>Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365740</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Sat, 15 Sep 2007 09:55:18 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Informationen on Sat, 15 Sep 2007 16:53:12 GMT]]></title><description><![CDATA[<p>Du musst WM_MOVING verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365999</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365999</guid><dc:creator><![CDATA[AZ]]></dc:creator><pubDate>Sat, 15 Sep 2007 16:53:12 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Informationen on Mon, 17 Sep 2007 15:53:09 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>Speichere einfach beim Instanzstart des Objekts die Positionsdaten des Fensters in eine Membervariable.<br />
Anschliessend prüfst du bei WM_MOVE nur noch ob die Membervariable (nennen wir sie posXY als POINT structured variable) sich von der neuen Position unterscheidet.</p>
<p>z.B. so</p>
<pre><code>if (posXY.x != LOWORD(lParam)) 
{
   Cout &lt;&lt; &quot;horizontal bewegt &lt;&lt; endl;
   posXY.x = LOWORD(lParam);
}
if (posXY.y != LOWORD(lParam)) 
{
   Cout &lt;&lt; &quot;vertikal bewegt &lt;&lt; endl;
   posXY.y = HIWORD(lParam);
}
</code></pre>
<p>MfG</p>
<p>Wolf</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1367113</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1367113</guid><dc:creator><![CDATA[Hroudtwolf]]></dc:creator><pubDate>Mon, 17 Sep 2007 15:53:09 GMT</pubDate></item></channel></rss>