<?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[CListCtrl problem mit GetSelectedCount()]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe in OnInitDialog()</p>
<pre><code>m_ctrList.InsertColumn(0, &quot;NAME&quot;, LVCFMT_CENTER, 50);
	m_ctrList.SetExtendedStyle(LVS_EX_FULLROWSELECT);

	m_ctrList.InsertItem(0, &quot;Name1&quot;);
	m_ctrList.InsertItem(1, &quot;Name2&quot;);
	m_ctrList.InsertItem(2, &quot;Name3&quot;);
</code></pre>
<p>und bei Ereignishandler</p>
<pre><code>void CtestDlg::OnLvnItemchangedList(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMLISTVIEW pNMLV = reinterpret_cast&lt;LPNMLISTVIEW&gt;(pNMHDR);
	// TODO: Fügen Sie hier Ihren Kontrollbehandlungscode für die Benachrichtigung ein.
	*pResult = 0;

	int i = m_ctrList.GetSelectedCount();

}
</code></pre>
<p>und jedes mal egal welche Position ich in der Liste klicke, kommt die Variable 'i' auf 1....<br />
habe ich noch was vergessen.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>bitte um Hilfe<br />
Adam</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/197400/clistctrl-problem-mit-getselectedcount</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Apr 2026 19:22:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/197400.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Nov 2007 03:10:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CListCtrl problem mit GetSelectedCount() on Sat, 10 Nov 2007 03:10:56 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe in OnInitDialog()</p>
<pre><code>m_ctrList.InsertColumn(0, &quot;NAME&quot;, LVCFMT_CENTER, 50);
	m_ctrList.SetExtendedStyle(LVS_EX_FULLROWSELECT);

	m_ctrList.InsertItem(0, &quot;Name1&quot;);
	m_ctrList.InsertItem(1, &quot;Name2&quot;);
	m_ctrList.InsertItem(2, &quot;Name3&quot;);
</code></pre>
<p>und bei Ereignishandler</p>
<pre><code>void CtestDlg::OnLvnItemchangedList(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMLISTVIEW pNMLV = reinterpret_cast&lt;LPNMLISTVIEW&gt;(pNMHDR);
	// TODO: Fügen Sie hier Ihren Kontrollbehandlungscode für die Benachrichtigung ein.
	*pResult = 0;

	int i = m_ctrList.GetSelectedCount();

}
</code></pre>
<p>und jedes mal egal welche Position ich in der Liste klicke, kommt die Variable 'i' auf 1....<br />
habe ich noch was vergessen.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>bitte um Hilfe<br />
Adam</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400691</guid><dc:creator><![CDATA[adamacka]]></dc:creator><pubDate>Sat, 10 Nov 2007 03:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl problem mit GetSelectedCount() on Sat, 10 Nov 2007 11:40:54 GMT]]></title><description><![CDATA[<p>Es ist der SelectedCount! Nicht welches Item selektiert ist!</p>
<p>In der Doku im Sample zu GetSelectedCount findest Du ein Beispiel wie Du die selektierten Items ermittelst.<br />
<a href="http://msdn2.microsoft.com/en-us/library/7sdaafak(VS.80).aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/7sdaafak(VS.80).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400800</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 10 Nov 2007 11:40:54 GMT</pubDate></item></channel></rss>