<?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[ListView: allen Items Selection&#x2F;Focus entziehen?]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich die Selection bzw den Focus (das ist doch das graue, was man hat, wenn man den extented-style show selection always an hat und dem LV der Focus entzogen wird, selection das blaue wenn man auf ein item klickt ...ihr wisst was ich meine <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> ) allen Items in einem ListView-Control entziehen?</p>
<p>Ich musste das bisher so machen:</p>
<pre><code class="language-cpp">int iSelCount = ListView_GetSelectedCount(hListView);
if(iSelCount == 0)
return;

for(int i = 0; i &lt; g_iNumItems; i++)
{
	if(ListView_GetItemState(hListView, i, LVIS_FOCUSED)
		|| ListView_GetItemState(hListView, i, LVIS_SELECTED))
	{
		ListView_SetItemState(hListView, i, 0, LVIS_FOCUSED | LVIS_SELECTED);
		iSelCount--;
		if(iSelCount == 0)
			break;
	}
}
</code></pre>
<p>gibt es da nicht eine Message die das für mich erledigt?</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174620/listview-allen-items-selection-focus-entziehen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 17:03:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174620.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Mar 2007 10:52:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ListView: allen Items Selection&#x2F;Focus entziehen? on Thu, 01 Mar 2007 10:52:06 GMT]]></title><description><![CDATA[<p>Hallo,<br />
wie kann ich die Selection bzw den Focus (das ist doch das graue, was man hat, wenn man den extented-style show selection always an hat und dem LV der Focus entzogen wird, selection das blaue wenn man auf ein item klickt ...ihr wisst was ich meine <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> ) allen Items in einem ListView-Control entziehen?</p>
<p>Ich musste das bisher so machen:</p>
<pre><code class="language-cpp">int iSelCount = ListView_GetSelectedCount(hListView);
if(iSelCount == 0)
return;

for(int i = 0; i &lt; g_iNumItems; i++)
{
	if(ListView_GetItemState(hListView, i, LVIS_FOCUSED)
		|| ListView_GetItemState(hListView, i, LVIS_SELECTED))
	{
		ListView_SetItemState(hListView, i, 0, LVIS_FOCUSED | LVIS_SELECTED);
		iSelCount--;
		if(iSelCount == 0)
			break;
	}
}
</code></pre>
<p>gibt es da nicht eine Message die das für mich erledigt?</p>
<p>thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237325</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237325</guid><dc:creator><![CDATA[Black Shadow]]></dc:creator><pubDate>Thu, 01 Mar 2007 10:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to ListView: allen Items Selection&#x2F;Focus entziehen? on Thu, 01 Mar 2007 12:00:41 GMT]]></title><description><![CDATA[<p>RTFM (Read the fine MSDN)</p>
<p>ListView_SetItemState kann mit dem Parameter -1 ale Items bearbeiten!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237371</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237371</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 01 Mar 2007 12:00:41 GMT</pubDate></item><item><title><![CDATA[Reply to ListView: allen Items Selection&#x2F;Focus entziehen? on Thu, 01 Mar 2007 16:39:07 GMT]]></title><description><![CDATA[<p>thx, da hab ich wohl vor lauter wald den baum nicht mehr gesehen :D.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1237612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1237612</guid><dc:creator><![CDATA[Black Shadow]]></dc:creator><pubDate>Thu, 01 Mar 2007 16:39:07 GMT</pubDate></item></channel></rss>