<?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[Frage zu WindowProc und lParam]]></title><description><![CDATA[<p>Hallo,<br />
ich hab ein kleines Problem mit dem lParam - Parameter der WindowProc.<br />
Und zwar möchte ich auf die WM_MOUSEACTIVATE - Message in der WindowProc reagieren. Wenn diese Message ankommt, möchte ich aber zusätzlich wissen, ob und welcher MouseButton gedrückt wurde. In der MSDN steht folgendes:</p>
<blockquote>
<p>lParam<br />
The low-order word specifies the hit-test value returned by the DefWindowProc function as a result of processing the WM_NCHITTEST message. For a list of hit-test values, see WM_NCHITTEST.<br />
The <strong>high-order word</strong> specifies the identifier of the mouse message generated <strong>when the user pressed a mouse button</strong>. The mouse message is either discarded or posted to the window, depending on the return value.</p>
</blockquote>
<p>Aber ich weiß nicht, wie ich an dieses &quot;high-order word&quot; von lParam rankomme! <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>
<p>Das geht doch bestimmt mit irgendwelchen Bit-Operationen. Da hatte ich schon immer Probleme mit. Kann mir jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/61283/frage-zu-windowproc-und-lparam</link><generator>RSS for Node</generator><lastBuildDate>Wed, 03 Jun 2026 15:42:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/61283.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Jan 2004 10:30:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu WindowProc und lParam on Tue, 13 Jan 2004 10:30:17 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich hab ein kleines Problem mit dem lParam - Parameter der WindowProc.<br />
Und zwar möchte ich auf die WM_MOUSEACTIVATE - Message in der WindowProc reagieren. Wenn diese Message ankommt, möchte ich aber zusätzlich wissen, ob und welcher MouseButton gedrückt wurde. In der MSDN steht folgendes:</p>
<blockquote>
<p>lParam<br />
The low-order word specifies the hit-test value returned by the DefWindowProc function as a result of processing the WM_NCHITTEST message. For a list of hit-test values, see WM_NCHITTEST.<br />
The <strong>high-order word</strong> specifies the identifier of the mouse message generated <strong>when the user pressed a mouse button</strong>. The mouse message is either discarded or posted to the window, depending on the return value.</p>
</blockquote>
<p>Aber ich weiß nicht, wie ich an dieses &quot;high-order word&quot; von lParam rankomme! <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>
<p>Das geht doch bestimmt mit irgendwelchen Bit-Operationen. Da hatte ich schon immer Probleme mit. Kann mir jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/435224</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/435224</guid><dc:creator><![CDATA[Cosmixx]]></dc:creator><pubDate>Tue, 13 Jan 2004 10:30:17 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu WindowProc und lParam on Tue, 13 Jan 2004 10:33:39 GMT]]></title><description><![CDATA[<p>Suchst du nach LOWORD und HIWORD?</p>
<p><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>
]]></description><link>https://www.c-plusplus.net/forum/post/435227</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/435227</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Tue, 13 Jan 2004 10:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu WindowProc und lParam on Tue, 13 Jan 2004 10:36:20 GMT]]></title><description><![CDATA[<p>Ha, nicht schlecht. Auf das einfachste kommt man wiedermal nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Danke dir!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/435230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/435230</guid><dc:creator><![CDATA[Cosmixx]]></dc:creator><pubDate>Tue, 13 Jan 2004 10:36:20 GMT</pubDate></item></channel></rss>