<?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[MouseMove funktioniert nicht bei CStatic]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgenden Code:</p>
<pre><code class="language-cpp">BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
    if( pMsg-&gt;message == WM_MOUSEMOVE )
    {
        if(pMsg-&gt;hwnd == GetDlgItem(IDC_MYLIST)-&gt;m_hWnd)
        {
            //OK, ich weiss, dass meine mouse über meine Listbox schwebt
            //jetzt kann ich entsprechende Aktionen auslösen...
        }
    }

    return CDialog::PreTranslateMessage(pMsg);
}
</code></pre>
<p>Hierbei ist IDC_MYLIST die ID meines ListBox-Steuerelements. Wende ich das ganze aber auf ein CStatic-Element anwende, dann funktioniert es nicht. Hat jemand eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/67052/mousemove-funktioniert-nicht-bei-cstatic</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 05:43:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/67052.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Mar 2004 10:18:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MouseMove funktioniert nicht bei CStatic on Fri, 05 Mar 2004 10:18:13 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgenden Code:</p>
<pre><code class="language-cpp">BOOL CMyDlg::PreTranslateMessage(MSG* pMsg)
{
    if( pMsg-&gt;message == WM_MOUSEMOVE )
    {
        if(pMsg-&gt;hwnd == GetDlgItem(IDC_MYLIST)-&gt;m_hWnd)
        {
            //OK, ich weiss, dass meine mouse über meine Listbox schwebt
            //jetzt kann ich entsprechende Aktionen auslösen...
        }
    }

    return CDialog::PreTranslateMessage(pMsg);
}
</code></pre>
<p>Hierbei ist IDC_MYLIST die ID meines ListBox-Steuerelements. Wende ich das ganze aber auf ein CStatic-Element anwende, dann funktioniert es nicht. Hat jemand eine Idee?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/473565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/473565</guid><dc:creator><![CDATA[q150022]]></dc:creator><pubDate>Fri, 05 Mar 2004 10:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to MouseMove funktioniert nicht bei CStatic on Fri, 05 Mar 2004 10:27:19 GMT]]></title><description><![CDATA[<p>Erstell das Static mal mit SS_NOTIFY</p>
]]></description><link>https://www.c-plusplus.net/forum/post/473580</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/473580</guid><dc:creator><![CDATA[SS]]></dc:creator><pubDate>Fri, 05 Mar 2004 10:27:19 GMT</pubDate></item></channel></rss>