<?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[Positionsangabe nach Mausklick]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Weiß jemand von euch, wie man die X- und Y-Koordinaten nach einem Klick(WM_LBOTTOMDOWN) liest, in zwei Variablen speichert, und dann am Bildschirm ausgibt.</p>
<p><strong>Danke!!!</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5684/positionsangabe-nach-mausklick</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 04:58:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5684.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 May 2003 16:11:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Positionsangabe nach Mausklick on Tue, 06 May 2003 16:11:00 GMT]]></title><description><![CDATA[<p>Hi Leute!</p>
<p>Weiß jemand von euch, wie man die X- und Y-Koordinaten nach einem Klick(WM_LBOTTOMDOWN) liest, in zwei Variablen speichert, und dann am Bildschirm ausgibt.</p>
<p><strong>Danke!!!</strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/27656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27656</guid><dc:creator><![CDATA[goag]]></dc:creator><pubDate>Tue, 06 May 2003 16:11:00 GMT</pubDate></item><item><title><![CDATA[Reply to Positionsangabe nach Mausklick on Tue, 06 May 2003 16:17:00 GMT]]></title><description><![CDATA[<p>Also, zuerst einmal heißt das Ding WM_LBUTTONDOWN...</p>
<p>Dann solltest Du Dir angewöhnen, die MSDN-Library zu benutzen!<br />
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputmessages/wm_lbuttondown.asp" rel="nofollow">WM-LBUTTONDOWN</a></p>
<p>Dort steht:<br />
lParam<br />
The low-order word specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.</p>
<p>The high-order word specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.</p>
<p>Use the following code to obtain the horizontal and vertical position:</p>
<p>xPos = GET_X_LPARAM(lParam);<br />
yPos = GET_Y_LPARAM(lParam);</p>
<p>You can also use the MAKEPOINTS macro to convert the lParam parameter to a POINTS structure.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27657</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27657</guid><dc:creator><![CDATA[Hepi]]></dc:creator><pubDate>Tue, 06 May 2003 16:17:00 GMT</pubDate></item><item><title><![CDATA[Reply to Positionsangabe nach Mausklick on Tue, 06 May 2003 16:21:00 GMT]]></title><description><![CDATA[<p>So mal als 'starter':</p>
<p>Mit dem ClassWizard 'OnLButtonDown' erstellen:</p>
<pre><code class="language-cpp">void CYourView::OnLButtonDown(UINT nFlags, CPoint point) {
int x = point.x;
int y = point.y;
...
</code></pre>
<p>Wie willst Du die Koordinaten ausgeben (Textfeld; auf den Hintergrund geschrieben) ?</p>
<p>-Captn.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/27658</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27658</guid><dc:creator><![CDATA[Captain]]></dc:creator><pubDate>Tue, 06 May 2003 16:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to Positionsangabe nach Mausklick on Tue, 06 May 2003 16:23:00 GMT]]></title><description><![CDATA[<p>Da ist mir doch schon wer zuvorgekommen <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="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/27659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/27659</guid><dc:creator><![CDATA[Captain]]></dc:creator><pubDate>Tue, 06 May 2003 16:23:00 GMT</pubDate></item></channel></rss>