<?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-Problem]]></title><description><![CDATA[<p>Hi @ All.</p>
<p>ich habe es so gemacht, dass das Fenster beim Ziehen verschieben soll.</p>
<p>Aber das geht nicht!</p>
<p>hier meine Msg-Loop:</p>
<pre><code class="language-cpp">RECT rClient;
	POINT pWindow, pMouse;
	case WM_MOUSEMOVE:
		if (MK_LBUTTON == wParam)
		{
			GetClientRect(hWnd, &amp;rClient);
			pWindow.x = rClient.left;
			pWindow.y = rClient.top;
			pMouse.x = LOWORD(lParam);
			pMouse.x = HIWORD(lParam);
			SetWindowPos(hWnd, NULL,
						 pWindow.x+pMouse.x-pMouseOld.x, pWindow.y+pMouse.y-pMouseOld.y,
						 0, 0,
						 SWP_NOSIZE);
		}
		pMouseOld.x = LOWORD(lParam);
		pMouseOld.x = HIWORD(lParam);
        return 0;
</code></pre>
<p>thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192063/verschieb-problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 03:06:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192063.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Sep 2007 07:44:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 07:44:40 GMT]]></title><description><![CDATA[<p>Hi @ All.</p>
<p>ich habe es so gemacht, dass das Fenster beim Ziehen verschieben soll.</p>
<p>Aber das geht nicht!</p>
<p>hier meine Msg-Loop:</p>
<pre><code class="language-cpp">RECT rClient;
	POINT pWindow, pMouse;
	case WM_MOUSEMOVE:
		if (MK_LBUTTON == wParam)
		{
			GetClientRect(hWnd, &amp;rClient);
			pWindow.x = rClient.left;
			pWindow.y = rClient.top;
			pMouse.x = LOWORD(lParam);
			pMouse.x = HIWORD(lParam);
			SetWindowPos(hWnd, NULL,
						 pWindow.x+pMouse.x-pMouseOld.x, pWindow.y+pMouse.y-pMouseOld.y,
						 0, 0,
						 SWP_NOSIZE);
		}
		pMouseOld.x = LOWORD(lParam);
		pMouseOld.x = HIWORD(lParam);
        return 0;
</code></pre>
<p>thx.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362336</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Mon, 10 Sep 2007 07:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 08:12:17 GMT]]></title><description><![CDATA[<p>Script-Styler schrieb:</p>
<blockquote>
<p>Aber das geht nicht!</p>
</blockquote>
<p><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/1362350</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362350</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 10 Sep 2007 08:12:17 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 08:24:54 GMT]]></title><description><![CDATA[<p>was denn?</p>
<p>das funktioniert nicht.</p>
<p>wie soll ich das denn machen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362367</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362367</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Mon, 10 Sep 2007 08:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 08:29:26 GMT]]></title><description><![CDATA[<p>Script-Styler schrieb:</p>
<blockquote>
<p>wie soll ich das denn machen?</p>
</blockquote>
<p>Für's erste solltest du mal eine ordentlich Fehlerbeschreibung abliefern. &quot;Funktioniert nicht&quot; ist jedenfalls keine.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362371</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Mon, 10 Sep 2007 08:29:26 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 08:42:54 GMT]]></title><description><![CDATA[<p>MFK schrieb:</p>
<blockquote>
<p>Script-Styler schrieb:</p>
<blockquote>
<p>wie soll ich das denn machen?</p>
</blockquote>
<p>Für's erste solltest du mal eine ordentlich Fehlerbeschreibung abliefern. &quot;Funktioniert nicht&quot; ist jedenfalls keine.</p>
</blockquote>
<p>dooch!</p>
<p>aber gut:<br />
wenn ich das anwende, dann verschiebt er sich einfach wo anders hin, oder garnicht.</p>
<p>was mache ich falsch? nehme ich die Fensterposition falsch auf oder warum macht er sowas?</p>
<p>danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362386</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362386</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Mon, 10 Sep 2007 08:42:54 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 09:36:05 GMT]]></title><description><![CDATA[<blockquote>
<p>The GetClientRect function retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client area. Because client coordinates are relative to the upper-left corner of a window's client area, the coordinates of the upper-left corner are (0,0).</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1362415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362415</guid><dc:creator><![CDATA[tenchou]]></dc:creator><pubDate>Mon, 10 Sep 2007 09:36:05 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 10:42:49 GMT]]></title><description><![CDATA[<p>wie soll ich denn dan die Fensterkoordinaten bekommen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362464</guid><dc:creator><![CDATA[Script-Styler]]></dc:creator><pubDate>Mon, 10 Sep 2007 10:42:49 GMT</pubDate></item><item><title><![CDATA[Reply to Verschieb-Problem on Mon, 10 Sep 2007 11:05:43 GMT]]></title><description><![CDATA[<p>Was willst du eigentlich?<br />
Dass das Fenster überall, auch im Client-Bereich bewegt werden kann?<br />
Das wurde heir shcon 1000x beantwortet. Bitte also erst die Suchfunktion benutzen.</p>
<pre><code class="language-cpp">case WM_LBUTTONDOWN:
	ReleaseCapture();
	return SendMessage(hwnd, WM_SYSCOMMAND, SC_MOVE+HTCAPTION, 0);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1362481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362481</guid><dc:creator><![CDATA[Black Shadow]]></dc:creator><pubDate>Mon, 10 Sep 2007 11:05:43 GMT</pubDate></item></channel></rss>