<?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 mit Daten füllen funzt nicht :-(]]></title><description><![CDATA[<p>Hallo ich möchte ganz einfach eine Tabelle mit folgenden Werten füllen aber irgendwie geht das nicht die Tabelle ist leer. Das ganze soll so aussehen</p>
<p>Name Alter Haarfarbe Groesse<br />
Mike 20 braun 1.78 m</p>
<pre><code>m_ctrlLog.InsertColumn(0, (LPCTSTR)&quot;Name&quot;, LVCFMT_LEFT, 200);
m_ctrlLog.InsertColumn(1, (LPCTSTR)&quot;Alter&quot;, LVCFMT_LEFT, 200);
m_ctrlLog.InsertColumn(2, (LPCTSTR)&quot;Haarfarbe&quot;, LVCFMT_LEFT, 200);
m_ctrlLog.InsertColumn(3, (LPCTSTR)&quot;Groesse&quot;, LVCFMT_LEFT, 200);

m_ctrlLogPWM.InsterItem(0,&quot;Mike&quot;, 1);
m_ctrlLogPWM.InsterItem(1,&quot;20&quot;, 1);
m_ctrlLogPWM.InsterItem(2,&quot;braun&quot;, 1);
m_ctrlLogPWM.InsterItem(3,&quot;1.78 m&quot;, 1);
</code></pre>
<p>Weis jemand was ich falsch mache ? Wie kann ich zwischen dem Tabellenkopf und Den Werten eine Trennlinie einfügen</p>
<p>vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/66127/clistctrl-mit-daten-füllen-funzt-nicht</link><generator>RSS for Node</generator><lastBuildDate>Fri, 05 Jun 2026 19:00:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/66127.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Feb 2004 13:20:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 13:20:30 GMT]]></title><description><![CDATA[<p>Hallo ich möchte ganz einfach eine Tabelle mit folgenden Werten füllen aber irgendwie geht das nicht die Tabelle ist leer. Das ganze soll so aussehen</p>
<p>Name Alter Haarfarbe Groesse<br />
Mike 20 braun 1.78 m</p>
<pre><code>m_ctrlLog.InsertColumn(0, (LPCTSTR)&quot;Name&quot;, LVCFMT_LEFT, 200);
m_ctrlLog.InsertColumn(1, (LPCTSTR)&quot;Alter&quot;, LVCFMT_LEFT, 200);
m_ctrlLog.InsertColumn(2, (LPCTSTR)&quot;Haarfarbe&quot;, LVCFMT_LEFT, 200);
m_ctrlLog.InsertColumn(3, (LPCTSTR)&quot;Groesse&quot;, LVCFMT_LEFT, 200);

m_ctrlLogPWM.InsterItem(0,&quot;Mike&quot;, 1);
m_ctrlLogPWM.InsterItem(1,&quot;20&quot;, 1);
m_ctrlLogPWM.InsterItem(2,&quot;braun&quot;, 1);
m_ctrlLogPWM.InsterItem(3,&quot;1.78 m&quot;, 1);
</code></pre>
<p>Weis jemand was ich falsch mache ? Wie kann ich zwischen dem Tabellenkopf und Den Werten eine Trennlinie einfügen</p>
<p>vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467500</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467500</guid><dc:creator><![CDATA[Kuri01]]></dc:creator><pubDate>Wed, 25 Feb 2004 13:20:30 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 13:26:20 GMT]]></title><description><![CDATA[<p>Der obere Block is glaubich okay, aber der dadrunter is falsch.</p>
<p>InsertItem macht eine neue Zeile und packt den gegebenen Text in die erste Spalte. Dann musst du mit SetItemText weitermachen.</p>
<p>OK?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467508</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Wed, 25 Feb 2004 13:26:20 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 13:26:37 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int iItem = m_ctrlLogPWM.InsertItem(0,&quot;Mike&quot;); 
m_ctrlLogPWM.SetItemText(iItem,1,&quot;20&quot;); 
m_ctrlLogPWM.SetItemText(iItem,2,&quot;braun&quot;); 
m_ctrlLogPWM.SetItemText(iItem,3,&quot;1.78 m&quot;);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/467509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467509</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Wed, 25 Feb 2004 13:26:37 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 13:34:38 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>danke erstmal aber es klappt trotzdem nicht ....PWM hatte ich falsch geschrieben sorry das heist natürlich m_ctrlLog.....</p>
<p>Er schreibt mir Mike in der ersten spalte. Beim versuch den Index auf auf zu setzen um zu testen obe es in die zweite Zeile schreibt, hat er mike wieder in die erste geschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467520</guid><dc:creator><![CDATA[Kuri01]]></dc:creator><pubDate>Wed, 25 Feb 2004 13:34:38 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 13:38:01 GMT]]></title><description><![CDATA[<blockquote>
<p>Er schreibt mir Mike in der ersten spalte. Beim versuch den Index auf auf zu setzen um zu testen obe es in die zweite Zeile schreibt, hat er mike wieder in die erste geschrieben.</p>
</blockquote>
<p>Bitte noch mal auf deutsch <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>
]]></description><link>https://www.c-plusplus.net/forum/post/467523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467523</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Wed, 25 Feb 2004 13:38:01 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 13:39:19 GMT]]></title><description><![CDATA[<p>Ok</p>
<p>das hier soll er einfach nur machen</p>
<p>Name Alter ....<br />
Mike 20 ....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467527</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467527</guid><dc:creator><![CDATA[Kuri01]]></dc:creator><pubDate>Wed, 25 Feb 2004 13:39:19 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 14:25:11 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">m_ctrlLog.InsertColumn(0, (LPCTSTR)&quot;Name&quot;, LVCFMT_LEFT, 200); 
m_ctrlLog.InsertColumn(1, (LPCTSTR)&quot;Alter&quot;, LVCFMT_LEFT, 200); 
m_ctrlLog.InsertColumn(2, (LPCTSTR)&quot;Haarfarbe&quot;, LVCFMT_LEFT, 200); 
m_ctrlLog.InsertColumn(3, (LPCTSTR)&quot;Groesse&quot;, LVCFMT_LEFT, 200); 

int iItem = m_ctrlLog.InsertItem(0,&quot;Mike&quot;); 
m_ctrlLog.SetItemText(iItem,1,&quot;20&quot;); 
m_ctrlLog.SetItemText(iItem,2,&quot;braun&quot;); 
m_ctrlLog.SetItemText(iItem,3,&quot;1.78 m&quot;);
</code></pre>
<p>^^ was läuft mit dem falsch?</p>
<blockquote>
<p>Er schreibt mir Mike in der ersten spalte. Beim versuch den Index auf auf zu setzen um zu testen obe es in die zweite Zeile schreibt, hat er mike wieder in die erste geschrieben.</p>
</blockquote>
<p>Du willst in die 2. Zeile schreiben und die erste leer lasen? Das geht so direkt nicht, muss ne &quot;dummy&quot;-zeile einfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467547</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467547</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Wed, 25 Feb 2004 14:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 14:05:38 GMT]]></title><description><![CDATA[<p>Ich will nicht in dei nächste Zeile reinschreiben sondern in die nächste Spalte</p>
<p>Name ALter ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467567</guid><dc:creator><![CDATA[Kuri01]]></dc:creator><pubDate>Wed, 25 Feb 2004 14:05:38 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl mit Daten füllen funzt nicht :-( on Wed, 25 Feb 2004 14:24:50 GMT]]></title><description><![CDATA[<p><strong>CListCtrl::SetItemText</strong></p>
<p><strong>BOOL SetItemText( int</strong> nItem, <strong>int</strong> nSubItem, <strong>LPTSTR</strong> lpszText <strong>);</strong></p>
<p><strong>Return Value</strong></p>
<p>Nonzero if successful; otherwise zero.</p>
<p><strong>Parameters</strong></p>
<p>nItem</p>
<p>Index of the item whose text is to be set.</p>
<p>nSubItem</p>
<p>Index of the subitem, or zero to set the item label.</p>
<p>lpszText</p>
<p>Pointer to a string that contains the new item text.</p>
<p>Auf gut deutsch:<br />
nItem: Nummer der Ziele um die es geht. Sollte natürlich existieren (mit InsertItem erzeugt);<br />
nSubItem: Die Spalte um die es geht.<br />
lpszText: Der Text der rein soll.</p>
<blockquote>
<p>^^ was läuft mit dem falsch?</p>
</blockquote>
<p>selbe Frage noch mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/467585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/467585</guid><dc:creator><![CDATA[CMatt]]></dc:creator><pubDate>Wed, 25 Feb 2004 14:24:50 GMT</pubDate></item></channel></rss>