<?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[Item in einem List-View markieren]]></title><description><![CDATA[<p>Der Titel sagt alles ...ich weiß irg wie nicht wie man die letzten beiden Params des ListView_SetItemState()-Makros bestückt</p>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f4a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--light_bulb"
      title=":bulb:"
      alt="💡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153695/item-in-einem-list-view-markieren</link><generator>RSS for Node</generator><lastBuildDate>Thu, 23 Jul 2026 09:36:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153695.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Jul 2006 19:06:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Item in einem List-View markieren on Wed, 19 Jul 2006 19:06:33 GMT]]></title><description><![CDATA[<p>Der Titel sagt alles ...ich weiß irg wie nicht wie man die letzten beiden Params des ListView_SetItemState()-Makros bestückt</p>
<p>Danke schonmal <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f4a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--light_bulb"
      title=":bulb:"
      alt="💡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100606</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100606</guid><dc:creator><![CDATA[BetaGuru]]></dc:creator><pubDate>Wed, 19 Jul 2006 19:06:33 GMT</pubDate></item><item><title><![CDATA[Reply to Item in einem List-View markieren on Wed, 19 Jul 2006 20:12:07 GMT]]></title><description><![CDATA[<p>Könnt ihr mir bitte helfen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100631</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100631</guid><dc:creator><![CDATA[BetaGuru]]></dc:creator><pubDate>Wed, 19 Jul 2006 20:12:07 GMT</pubDate></item><item><title><![CDATA[Reply to Item in einem List-View markieren on Wed, 19 Jul 2006 21:34:50 GMT]]></title><description><![CDATA[<p>Versuch:</p>
<pre><code class="language-cpp">SendMessage(hwndListView,LB_SETSEL,1,iZeile);
</code></pre>
<p>&quot;iZeile&quot; muss die Nummer des Eintrages sein, den du auswählen willst<br />
(1. Zeile ist der Wert 0). Wenn du für &quot;iZeile&quot; den Wert -1 wählst,<br />
dann wird die komplette Liste ausgewählt.</p>
<p>Falls das gar nicht funktioniert bitte schreiben, habe das jetzt so spät<br />
nicht mehr ausprobiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100670</guid><dc:creator><![CDATA[-=Chris=-]]></dc:creator><pubDate>Wed, 19 Jul 2006 21:34:50 GMT</pubDate></item><item><title><![CDATA[Reply to Item in einem List-View markieren on Wed, 19 Jul 2006 21:38:28 GMT]]></title><description><![CDATA[<p>Mir ist eine Frage in den Kopf gekommen, heißt &quot;List-View&quot; jetzt, dass<br />
es sich um einen &quot;Tree-View&quot; handelt oder um eine &quot;List-Box&quot;?</p>
<p>Mein Beispiel, sofern es funktioniert, ist wie man sieht (&quot;LB_...&quot;) nur<br />
für &quot;List-Boxen&quot; bzw. &quot;Listenfenster&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100672</guid><dc:creator><![CDATA[-=Chris=-]]></dc:creator><pubDate>Wed, 19 Jul 2006 21:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to Item in einem List-View markieren on Wed, 19 Jul 2006 21:49:06 GMT]]></title><description><![CDATA[<p>-=Chris=- schrieb:</p>
<blockquote>
<p>Mir ist eine Frage in den Kopf gekommen, heißt &quot;List-View&quot; jetzt, dass<br />
es sich um einen &quot;Tree-View&quot; handelt oder um eine &quot;List-Box&quot;?</p>
<p>Mein Beispiel, sofern es funktioniert, ist wie man sieht (&quot;LB_...&quot;) nur<br />
für &quot;List-Boxen&quot; bzw. &quot;Listenfenster&quot;.</p>
</blockquote>
<p>Also ich kläre auf <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="🙂"
    /> :</p>
<p><a href="http://images.google.de/images?q=tbn:j5cFO5yHOIktoM:www.lusas.com/images/treeview.gif" rel="nofollow">- TreeView</a><br />
<a href="http://images.google.de/images?q=tbn:tLC5aFXVdnEtfM:home.att.ne.jp/green/atlan/images/listbox.gif" rel="nofollow">- Listbox</a><br />
<a href="http://images.google.de/images?q=tbn:iLQuiF7YECXrwM:www.atmarkit.co.jp/fdotnet/dotnettips/258listviewadd/details.gif" rel="nofollow">- ListView</a></p>
<p>Was nun eine 'Listenfenster' ist, ist wohl definiitions Sache ... würde sagen ist auch ne Listbox.</p>
<p>So nun zum Thema:</p>
<p>-=Chris=- schrieb:</p>
<blockquote>
<p>Versuch:</p>
<pre><code class="language-cpp">SendMessage(hwndListView,LB_SETSEL,1,iZeile);
</code></pre>
<p>&quot;iZeile&quot; muss die Nummer des Eintrages sein, den du auswählen willst<br />
(1. Zeile ist der Wert 0). Wenn du für &quot;iZeile&quot; den Wert -1 wählst,<br />
dann wird die komplette Liste ausgewählt.</p>
</blockquote>
<p>Das gilt nur für Listboxen!</p>
<p>Ein Item in einem ListView zu markieren geht so:</p>
<pre><code class="language-cpp">// Erste Element markieren:
ListView_SetItemState(hlsvLanguages, 0, LVIS_SELECTED, LVIS_SELECTED);
/*
Wird der 2 Parameter auf -1 gesetzt werden alle markiert.
*/
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1100674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100674</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Wed, 19 Jul 2006 21:49:06 GMT</pubDate></item><item><title><![CDATA[Reply to Item in einem List-View markieren on Wed, 19 Jul 2006 22:01:40 GMT]]></title><description><![CDATA[<p>Danke für die Hilfe <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="😃"
    /></p>
<p>Habe beim Googeln auch bemerkt, dass es 3 von der Sorte gibt.<br />
Listenfenster ist die Bezeichnung für ListBox (wird aber selten<br />
benutzt).</p>
<p>Und einigermaßen auskennen tue ich mich nur mit eben diesen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100680</guid><dc:creator><![CDATA[-=Chris=-]]></dc:creator><pubDate>Wed, 19 Jul 2006 22:01:40 GMT</pubDate></item><item><title><![CDATA[Reply to Item in einem List-View markieren on Wed, 19 Jul 2006 22:17:24 GMT]]></title><description><![CDATA[<p>Ok danke schonmal, das funtz jez, aber aus irgend welchem Grund wird das Item nicht markiert. Weiß jmd warum ? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100685</guid><dc:creator><![CDATA[BetaGuru]]></dc:creator><pubDate>Wed, 19 Jul 2006 22:17:24 GMT</pubDate></item><item><title><![CDATA[Reply to Item in einem List-View markieren on Thu, 20 Jul 2006 06:25:15 GMT]]></title><description><![CDATA[<p>Gut, obwohl ich mich nicht genau auskenne versuche ich es wieder.</p>
<p>Nach kurzem Googeln habe ich etwas gefunden, dass dir evtl. hilft:</p>
<blockquote>
<p>LVIS_SELECTED<br />
The item is selected. The appearance of a selected item depends on whether it has<br />
the focus and also on the system colors used for selection. Items will only show<br />
as selected if the list-view control has focus or the LVS_SHOWSELALWAYS style is<br />
used.</p>
</blockquote>
<p>So wie ich das verstehe sollte deinem List-View noch der Style &quot;LVS_SHOWALWAYS&quot;<br />
beim erzeugen gegeben werden. Aber man wird mich hoffentlich berichtigen, wenn ich<br />
falsch liege. <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1100740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1100740</guid><dc:creator><![CDATA[-=Chris=-]]></dc:creator><pubDate>Thu, 20 Jul 2006 06:25:15 GMT</pubDate></item></channel></rss>