<?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 selektion]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>mein Problem ist, dass ich ein Listview erstellt habe, von dem ich nur Einträge von der ersten Spalte selektieren kann. Von der Zweiten ist es nicht möglich!!!!<br />
Vielleicht könnt ihr mir da weiter helfen. Der Code lautet:</p>
<p>hListView = CreateWindowEx(0,WC_LISTVIEW, NULL,WS_CHILD | WS_VISIBLE |LVS_REPORT|LVS_EDITLABELS,0,0,100,100,hwnd,(HMENU) NULL,hThisInstance,NULL);</p>
<p>lvc.mask=LVIF_STATE|LVCF_FMT | LVCF_WIDTH | LVCF_TEXT |<br />
LVCF_SUBITEM|LVIF_PARAM;<br />
lvc.iSubItem = 0;<br />
lvc.pszText = TEXT(&quot;Point&quot;);<br />
<a href="http://lvc.cx" rel="nofollow">lvc.cx</a> = 50;<br />
ListView_InsertColumn(hListView, 0, &amp;lvc);<br />
lvc.iSubItem = 1;<br />
lvc.pszText = TEXT(&quot;Time&quot;);<br />
ListView_InsertColumn(hListView, 1, &amp;lvc);<br />
for(int i=0;i&lt;5;i++)<br />
{<br />
lv.iItem = 0;<br />
lv.iSubItem=0;<br />
lv.pszText=&quot;Col1&quot;;<br />
ListView_InsertItem(hListView, &amp;lv);<br />
SendMessage(hListView,LVM_SETITEMTEXT,(WPARAM)0,(LPARAM)&amp;lv);</p>
<p>lv.iSubItem=1;<br />
lv.pszText=&quot;Col2&quot;;<br />
ListView_InsertItem(hListView, &amp;lv);<br />
SendMessage(hListView,LVM_SETITEMTEXT,(WPARAM)0,(LPARAM)&amp;lv);<br />
}</p>
<p>Vielen Dank für Eure Mühen.</p>
<p>Grüße josef</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/203914/listview-selektion</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 20:48:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/203914.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Jan 2008 08:52:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Listview selektion on Mon, 28 Jan 2008 08:52:46 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>mein Problem ist, dass ich ein Listview erstellt habe, von dem ich nur Einträge von der ersten Spalte selektieren kann. Von der Zweiten ist es nicht möglich!!!!<br />
Vielleicht könnt ihr mir da weiter helfen. Der Code lautet:</p>
<p>hListView = CreateWindowEx(0,WC_LISTVIEW, NULL,WS_CHILD | WS_VISIBLE |LVS_REPORT|LVS_EDITLABELS,0,0,100,100,hwnd,(HMENU) NULL,hThisInstance,NULL);</p>
<p>lvc.mask=LVIF_STATE|LVCF_FMT | LVCF_WIDTH | LVCF_TEXT |<br />
LVCF_SUBITEM|LVIF_PARAM;<br />
lvc.iSubItem = 0;<br />
lvc.pszText = TEXT(&quot;Point&quot;);<br />
<a href="http://lvc.cx" rel="nofollow">lvc.cx</a> = 50;<br />
ListView_InsertColumn(hListView, 0, &amp;lvc);<br />
lvc.iSubItem = 1;<br />
lvc.pszText = TEXT(&quot;Time&quot;);<br />
ListView_InsertColumn(hListView, 1, &amp;lvc);<br />
for(int i=0;i&lt;5;i++)<br />
{<br />
lv.iItem = 0;<br />
lv.iSubItem=0;<br />
lv.pszText=&quot;Col1&quot;;<br />
ListView_InsertItem(hListView, &amp;lv);<br />
SendMessage(hListView,LVM_SETITEMTEXT,(WPARAM)0,(LPARAM)&amp;lv);</p>
<p>lv.iSubItem=1;<br />
lv.pszText=&quot;Col2&quot;;<br />
ListView_InsertItem(hListView, &amp;lv);<br />
SendMessage(hListView,LVM_SETITEMTEXT,(WPARAM)0,(LPARAM)&amp;lv);<br />
}</p>
<p>Vielen Dank für Eure Mühen.</p>
<p>Grüße josef</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1444859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1444859</guid><dc:creator><![CDATA[jleschi]]></dc:creator><pubDate>Mon, 28 Jan 2008 08:52:46 GMT</pubDate></item><item><title><![CDATA[Reply to Listview selektion on Thu, 31 Jan 2008 16:16:24 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">ListView_SetExtendedListViewStyle (hListView, LVS_EX_FULLROWSELECT);
</code></pre>
<p>im übrigen solltest du, um einen eintrag in die 2. spalte einzufügen, ListView_SetItem () oder LVM_SETITEM benutzen, damit kannst du dir auch das LVM_SETITEMTEXT sparen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1447125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1447125</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Thu, 31 Jan 2008 16:16:24 GMT</pubDate></item></channel></rss>