<?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[Probleme mit CListCtrl unter NT4.0]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine Programm mit einer CListCtrl. Mit Doppelklick auf ein Element wird dieses in einem anderen Feld dargestellt.<br />
Läuft das Programm unter XP klappt das, aber unter NT4.0 reagiert er nicht auf den Doppelklick.</p>
<p>Weiß jemand woran das liegt?<br />
Danke+</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/6509/probleme-mit-clistctrl-unter-nt4-0</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 20:09:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/6509.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 08 Jul 2003 10:38:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 10:38:00 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe eine Programm mit einer CListCtrl. Mit Doppelklick auf ein Element wird dieses in einem anderen Feld dargestellt.<br />
Läuft das Programm unter XP klappt das, aber unter NT4.0 reagiert er nicht auf den Doppelklick.</p>
<p>Weiß jemand woran das liegt?<br />
Danke+</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31607</guid><dc:creator><![CDATA[MuehBln]]></dc:creator><pubDate>Tue, 08 Jul 2003 10:38:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 12:10:00 GMT]]></title><description><![CDATA[<p>Hm, Codeausschnitt wäre besser!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31608</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Tue, 08 Jul 2003 12:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 12:34:00 GMT]]></title><description><![CDATA[<p>Dachte, dass das vielleicht ein NT-spezifisches Problem ist, da es unter XP ja funktioniert.<br />
Hier mal die Funktion für die Behandlung des Doppelklicks:</p>
<pre><code class="language-cpp">// MsgH: Doppelklick in der Historie
void CDMView::OnNMDblclkHistorie(NMHDR *pNMHDR, LRESULT *pResult)
{
    // das Item unter dem Mousezeiger holen
    int pos = m_Historie.GetHotItem();
    // falls ungültig gleich zurück
    if (pos == -1)
        return;
    else
    {
        // hole ID der gewählten Zeile
        CString str(m_Historie.GetItemText(pos, 0));
        // hole Value Wert aus der Historie mit der ID
        CValue* val = GetDocument()-&gt;GetHistorie()-&gt;operator [](atoi(str));
        if (val)
        {
            // kopiere in aktuellen Value Wert
            *(GetDocument()-&gt;GetValue()) = *val;
            // aktualisiere Anzeige der ID
            SetDlgItemText(IDC_ID, val-&gt;GetValue());
        }
    }
    *pResult = 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/31609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31609</guid><dc:creator><![CDATA[MuehBln]]></dc:creator><pubDate>Tue, 08 Jul 2003 12:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 12:44:00 GMT]]></title><description><![CDATA[<p>Tja, dann mussu wohl oder übel mal debuggen, oder, falls das nicht geht, in jeder Zeile ne MsgBox ausgeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31610</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Tue, 08 Jul 2003 12:44:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 12:50:00 GMT]]></title><description><![CDATA[<p>Debuggen geht leider nicht...<br />
Mit der MsgBox - hät ich ja auch selbst mal drauf kommen können.<br />
Manchmal sieht man den Wald vor Bäumen nicht... <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/31611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31611</guid><dc:creator><![CDATA[MuehBln]]></dc:creator><pubDate>Tue, 08 Jul 2003 12:50:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 13:09:00 GMT]]></title><description><![CDATA[<p>So, anhand der MsgBox habe ich rausgefunden, dass CListCtrl::GetHotItem() unter NT immer -1 zurückliefert. Ich habe in der MSDN nachgeschaut, aber dort sind keine Angabe bezüglich der Systemkompatibilität.</p>
<p>Hm, gibts eine andere Möglichkeit, das aktuelle Element rauszufinden auf das doppelt geklickt wurde?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31612</guid><dc:creator><![CDATA[MuehBln]]></dc:creator><pubDate>Tue, 08 Jul 2003 13:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 13:18:00 GMT]]></title><description><![CDATA[<blockquote>
<p>LVM_GETHOTITEM<br />
Retrieves the index of the hot item. You can send this message explicitly or use the ListView_GetHotItem macro.</p>
<p>Return Values<br />
Returns the index of the item that is hot.</p>
<p>Requirements<br />
Version 4.70 and later of Comctl32.dll</p>
<p>Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 3.0 and later).</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/31613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31613</guid><dc:creator><![CDATA[RenéG]]></dc:creator><pubDate>Tue, 08 Jul 2003 13:18:00 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit CListCtrl unter NT4.0 on Tue, 08 Jul 2003 13:36:00 GMT]]></title><description><![CDATA[<p>Hm, hab nachgeschaut und der NT-Client erfüllt die Voraussetzungen (comctl32.dll in V5.80, IE in V5.xx)<br />
Also sollte das doch eigentlich funktionieren.</p>
<p>Wie bekomme ich den über das Senden der Message LVM_GETHOTITEM die Position?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/31614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/31614</guid><dc:creator><![CDATA[MuehBln]]></dc:creator><pubDate>Tue, 08 Jul 2003 13:36:00 GMT</pubDate></item></channel></rss>