<?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[Position eines Items in einem ListenElement]]></title><description><![CDATA[<p>hallo,</p>
<p>wie kann ich herrausfinden an welcher stelle sich mein item in einer<br />
ListView befindet? also in welche Spalte!</p>
<p>gibt es sowas wie</p>
<pre><code>GetItemPos(id);
</code></pre>
<p>oder so? danke euch!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/152882/position-eines-items-in-einem-listenelement</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 02:32:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/152882.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Jul 2006 19:04:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Mon, 10 Jul 2006 19:04:57 GMT]]></title><description><![CDATA[<p>hallo,</p>
<p>wie kann ich herrausfinden an welcher stelle sich mein item in einer<br />
ListView befindet? also in welche Spalte!</p>
<p>gibt es sowas wie</p>
<pre><code>GetItemPos(id);
</code></pre>
<p>oder so? danke euch!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095378</guid><dc:creator><![CDATA[Harry H.]]></dc:creator><pubDate>Mon, 10 Jul 2006 19:04:57 GMT</pubDate></item><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Mon, 10 Jul 2006 20:57:19 GMT]]></title><description><![CDATA[<p>- ListView_FindItem (MFC: CListCtrl::FindItem)<br />
- ListView_GetItem (MFC: CListCtrl::GetItem)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095452</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095452</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Mon, 10 Jul 2006 20:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Tue, 11 Jul 2006 08:36:11 GMT]]></title><description><![CDATA[<p>CListCtrl::GetItemRect macht das!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095587</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 11 Jul 2006 08:36:11 GMT</pubDate></item><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Tue, 11 Jul 2006 10:22:39 GMT]]></title><description><![CDATA[<p>hmm!</p>
<p>da bekomme ich aber nicht die position der spalte sondern<br />
irgendwelche andere!</p>
<p>also ich habe die ID meines Items (z.B: 5) und ich möchte wissen<br />
in welche Spale es ist (z.B: Spalte 3)</p>
<p>wie geht das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1095673</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1095673</guid><dc:creator><![CDATA[Harry H.]]></dc:creator><pubDate>Tue, 11 Jul 2006 10:22:39 GMT</pubDate></item><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Wed, 12 Jul 2006 10:16:09 GMT]]></title><description><![CDATA[<p>weil die oben genannten Funktionen erfüllen das ja nicht?!</p>
<p>jedenfalls bei mir in meiner anwendung nicht!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096292</guid><dc:creator><![CDATA[Harry H]]></dc:creator><pubDate>Wed, 12 Jul 2006 10:16:09 GMT</pubDate></item><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Wed, 12 Jul 2006 12:15:27 GMT]]></title><description><![CDATA[<p>CListCtrl::GetSubItemRect!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096378</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 12 Jul 2006 12:15:27 GMT</pubDate></item><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Thu, 13 Jul 2006 07:12:23 GMT]]></title><description><![CDATA[<p>ich glaube wir verstehen uns net <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="🙂"
    /> oder ich verstehe etwas im<br />
zusammenhang mit Listenelementen net^^</p>
<p>ich fülle:</p>
<pre><code>m_List1.InsertItem(0,&quot;test1&quot;);
m_List1.SetItemText(0,1,&quot;200&quot;);

m_List1.InsertItem(1,&quot;test2&quot;);
m_List1.SetItemText(1,1,&quot;200&quot;);

m_List1.InsertItem(2,&quot;test3&quot;);
m_List1.SetItemText(2,1,&quot;200&quot;);

m_List1.InsertItem(3,&quot;test4&quot;);
m_List1.SetItemText(3,1,&quot;200&quot;);
</code></pre>
<p>also sieht es so aus:</p>
<pre><code>0: du 200
1: hehehe 200
2: abc 200
3: bela 200
</code></pre>
<p>nun sortiere ich z.B. die Listbox dann sieht es so aus:</p>
<pre><code>2: abc 200
3: bela 200
0: du 200
1: hehehe 200
</code></pre>
<p>wenn ich nun ein<br />
m_List1.DeleteItem(3);<br />
mache, wird nicht das Element &quot;3&quot; gelöscht sondern das Item &quot;1&quot;<br />
versteht ihr was ich meine?</p>
<p>also brauche ich eine Funktion der ich die Item-ID übergebe<br />
und sie sagt mir an welcher Position sich das Item in der Listbox<br />
befindet!!</p>
<p>p.s: oder kann man nachträglich garnicht mehr festellen mit welcher<br />
ID ein Item eingestellt wurde??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096875</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096875</guid><dc:creator><![CDATA[Harry H]]></dc:creator><pubDate>Thu, 13 Jul 2006 07:12:23 GMT</pubDate></item><item><title><![CDATA[Reply to Position eines Items in einem ListenElement on Thu, 13 Jul 2006 07:20:03 GMT]]></title><description><![CDATA[<p>Harry H schrieb:</p>
<blockquote>
<p>p.s: oder kann man nachträglich garnicht mehr festellen mit welcher ID ein Item eingestellt wurde??</p>
</blockquote>
<p>SO ist es. Was du &quot;ID&quot; nennst, ist nur die anfängliche Position. Wenn du die Einträge wiedererkennen willst, könntest du z.B. SetItemData und GetItemData benutuen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1096881</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1096881</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 13 Jul 2006 07:20:03 GMT</pubDate></item></channel></rss>