<?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[Inhalt eines Items im Listcontrol erhalten]]></title><description><![CDATA[<p>Hallo Leute</p>
<p>Ich bin immer noch an meinem Listcontrol dran</p>
<p>Ich möchte gerne durch einen doppelklick auf die Zeile<br />
den Ihnalt des i-ten Items erhalten .<br />
Ich bastele schon eine ganze Weile dran rum in der Art wie</p>
<pre><code class="language-cpp">void CDlg_Vorgang::OnNMDblclkListVorgang(NMHDR *pNMHDR, LRESULT *pResult)
{
	LVITEM lvi;
	m_ctrlVorgang.GetItem(&amp;lvi);
	MessageBox(lvi.pszText);
	*pResult = 0;

}
</code></pre>
<p>Ich weis , dass das so nicht funktioniert aber ich komme irgendwie nicht<br />
weiter</p>
<p>Danke im Voraus<br />
Gruß Linus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/154682/inhalt-eines-items-im-listcontrol-erhalten</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Jul 2026 17:24:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/154682.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Jul 2006 14:24:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sat, 29 Jul 2006 14:25:08 GMT]]></title><description><![CDATA[<p>Hallo Leute</p>
<p>Ich bin immer noch an meinem Listcontrol dran</p>
<p>Ich möchte gerne durch einen doppelklick auf die Zeile<br />
den Ihnalt des i-ten Items erhalten .<br />
Ich bastele schon eine ganze Weile dran rum in der Art wie</p>
<pre><code class="language-cpp">void CDlg_Vorgang::OnNMDblclkListVorgang(NMHDR *pNMHDR, LRESULT *pResult)
{
	LVITEM lvi;
	m_ctrlVorgang.GetItem(&amp;lvi);
	MessageBox(lvi.pszText);
	*pResult = 0;

}
</code></pre>
<p>Ich weis , dass das so nicht funktioniert aber ich komme irgendwie nicht<br />
weiter</p>
<p>Danke im Voraus<br />
Gruß Linus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106697</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106697</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sat, 29 Jul 2006 14:25:08 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sat, 29 Jul 2006 15:53:44 GMT]]></title><description><![CDATA[<p>Beispiel:</p>
<pre><code class="language-cpp">int i;
i = c_lstListe.GetSelectionMark();
m_txtText1 = c_lstListe.GetItemText(i, 1);
m_txtText2 = c_lstListe.GetItemText(i, 2);
m_txtText3 = c_lstListe.GetItemText(i, 3);
UpdateData(false);
</code></pre>
<p>Legenden:<br />
i = Variable für Zeilenindex<br />
c_lstListe = ListControl<br />
m_txtText... = MemberVariable von TextBox</p>
<p>hoffe das ist verständlich und hilft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106759</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106759</guid><dc:creator><![CDATA[thinux]]></dc:creator><pubDate>Sat, 29 Jul 2006 15:53:44 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sat, 29 Jul 2006 16:56:55 GMT]]></title><description><![CDATA[<p>Vielen Dank für die Antwort<br />
Ich war da auf einem ganz falschen Weg</p>
<p>GetItemTExt funktioniert jedoch bei</p>
<pre><code class="language-cpp">i =  m_ctrlVorgang.GetSelectionMark();
</code></pre>
<p>wird i=78 zurückgegeben ???<br />
ich hab nur eine Zeile in dem Listcontrol und 7 Spalten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106792</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106792</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sat, 29 Jul 2006 16:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sat, 29 Jul 2006 17:17:40 GMT]]></title><description><![CDATA[<p>seltsam! wird i vielleicht überschrieben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106796</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106796</guid><dc:creator><![CDATA[thinux]]></dc:creator><pubDate>Sat, 29 Jul 2006 17:17:40 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sat, 29 Jul 2006 17:18:37 GMT]]></title><description><![CDATA[<p>die erste zeile heißt &quot;0&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106799</guid><dc:creator><![CDATA[thinux]]></dc:creator><pubDate>Sat, 29 Jul 2006 17:18:37 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sat, 29 Jul 2006 17:57:12 GMT]]></title><description><![CDATA[<p>ich konnte es ja mit<br />
.GetItemTex(0,5)<br />
ausprobieren, und es hat funktioniert</p>
<p>Hier der code:</p>
<pre><code class="language-cpp">void CDlg_Vorgang::OnNMDblclkListVorgang(NMHDR *pNMHDR, LRESULT *pResult)
{
	int i;
	i=m_ctrlVorgang.GetSelectionMark();
	MessageBox(m_ctrlVorgang.GetItemText(i,5));
	*pResult = 0;

}
</code></pre>
<p>Kann ich nicht über das doubleClick-Event die Reihe ermitteln?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106826</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106826</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sat, 29 Jul 2006 17:57:12 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sat, 29 Jul 2006 18:20:32 GMT]]></title><description><![CDATA[<p>Ich habs. So gehts:</p>
<pre><code class="language-cpp">int i;
	NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
	i=pNMListView-&gt;iItem;
	MessageBox(m_ctrlVorgang.GetItemText(i,5));
</code></pre>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1106839</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1106839</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sat, 29 Jul 2006 18:20:32 GMT</pubDate></item><item><title><![CDATA[Reply to Inhalt eines Items im Listcontrol erhalten on Sun, 30 Jul 2006 15:41:47 GMT]]></title><description><![CDATA[<p>nur zur vollständigkeit</p>
<p>mit der einstellung:</p>
<pre><code class="language-cpp">.SetExtendedStyle(LVS_EX_FULLROWSELECT)
</code></pre>
<p>gehts auch wie ichs oben beschrieben hab</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1107226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1107226</guid><dc:creator><![CDATA[thinux]]></dc:creator><pubDate>Sun, 30 Jul 2006 15:41:47 GMT</pubDate></item></channel></rss>