<?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[Items in TreeView löschen]]></title><description><![CDATA[<p>Hallo,<br />
ich benutze in meinem Programm eine TreeView.<br />
Durch das Setzen von Radiobuttons in einem Dialog, sollen die Items in der TreeView zuerst gelöscht werden und anschließend wieder neue Items eingefügt werden.<br />
Neue Items einfügen ist dabei kein Problem, Probleme gibts beim löschen der alten Items.<br />
Zum löschen benutzte ich m_pTreeCtrl-&gt;delete(Item) oder<br />
m_pTreeCtrl-&gt;deleteAllItems().<br />
Das führt jedoch nur dazu das der Text des Items gelöscht wird und es immer noch anwählbar ist.<br />
Ausserdem lassen sich danach keine neue Items mehr einfügen, die TreeView bleibt leer.<br />
Woran liegt das?<br />
Verwende ich die falsche function?<br />
Wer kann mir helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/166520/items-in-treeview-löschen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 23:05:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/166520.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Nov 2006 07:48:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 07:48:21 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich benutze in meinem Programm eine TreeView.<br />
Durch das Setzen von Radiobuttons in einem Dialog, sollen die Items in der TreeView zuerst gelöscht werden und anschließend wieder neue Items eingefügt werden.<br />
Neue Items einfügen ist dabei kein Problem, Probleme gibts beim löschen der alten Items.<br />
Zum löschen benutzte ich m_pTreeCtrl-&gt;delete(Item) oder<br />
m_pTreeCtrl-&gt;deleteAllItems().<br />
Das führt jedoch nur dazu das der Text des Items gelöscht wird und es immer noch anwählbar ist.<br />
Ausserdem lassen sich danach keine neue Items mehr einfügen, die TreeView bleibt leer.<br />
Woran liegt das?<br />
Verwende ich die falsche function?<br />
Wer kann mir helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184208</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184208</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 30 Nov 2006 07:48:21 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 08:25:32 GMT]]></title><description><![CDATA[<p>*grübelt* eigentlich heißt die Methode ja DeleteItem() bzw. DeleteAllItems() - und normalerweise sollte sie auch genau das erledigen, was du benötigst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184245</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 30 Nov 2006 08:25:32 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 08:33:06 GMT]]></title><description><![CDATA[<p>Wie CStoll schon schrieb, die Funktionen sind OK.<br />
Könnte es sein Das Du SetRedraw(FALSE) arbeitest und vergessen hast das Fenster zu invalidieren?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184251</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 30 Nov 2006 08:33:06 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 10:09:07 GMT]]></title><description><![CDATA[<p>Das könnte möglich sein, muss ich mal ausprobieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184318</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 30 Nov 2006 10:09:07 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 10:15:53 GMT]]></title><description><![CDATA[<p>Habe jetzt SetRedraw(true) ergänzt und siehe da es funktioniert ^^<br />
Und wieder was gelernt!<br />
DANKE!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184323</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 30 Nov 2006 10:15:53 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 11:30:50 GMT]]></title><description><![CDATA[<p>maRKus23 schrieb:</p>
<blockquote>
<p>Habe jetzt SetRedraw(true) ergänzt und siehe da es funktioniert ^^<br />
Und wieder was gelernt!<br />
DANKE!!!!</p>
</blockquote>
<p>Aber Du hst aich sicherlich SetRedraw(FALSE) vorher selbst gesetzt? Wenn nicht ist was anderes faul. :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184399</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 30 Nov 2006 11:30:50 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 12:10:05 GMT]]></title><description><![CDATA[<p>Ähm ich habe kein SetRedraw(false) vorher gesetzt.<br />
Wieso sollte denn was anderes faul sein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184438</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 30 Nov 2006 12:10:05 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 12:46:38 GMT]]></title><description><![CDATA[<p>Weil das ein Flag ist, dass das System/OS selber nicht setzt.<br />
Also ist irgendwas bei Deiner Software auf die Idee gekommen SetRedraw(FALSE) zu setzen. D.h. es gab keine korrekten Updates mehr.<br />
Versuch mal nur ein Invalidate, statt dem SetRedraw(TRUE)!</p>
<p>Andere Frage: Führst Du das Delete innerhalb eines Tree Notification Handlers durch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184482</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 30 Nov 2006 12:46:38 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 14:54:56 GMT]]></title><description><![CDATA[<p>Führe das Delete nicht im Tree Notification Handler aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184633</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184633</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Thu, 30 Nov 2006 14:54:56 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Thu, 30 Nov 2006 15:15:01 GMT]]></title><description><![CDATA[<p>Hmmmm... sehr sehr sehr eigentümlich. :xmas2:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1184670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1184670</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 30 Nov 2006 15:15:01 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Fri, 01 Dec 2006 07:55:16 GMT]]></title><description><![CDATA[<p>Ich habe jetzt m_pTreeCtrl-&gt;SetRedraw(true) durch<br />
m_pTreeCtrl-&gt;Invalidate(true) ersetzt, und das Fenster wird dadurch nicht neugezeichnet.<br />
:xmas1:</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1185059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1185059</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Fri, 01 Dec 2006 07:55:16 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Sat, 02 Dec 2006 10:31:53 GMT]]></title><description><![CDATA[<p>Hmmm. Eigentümlichst. Dann musst Du es wohl mit dem SetRedraw(TRUE) lassen. Schaden kann es nicht<br />
nur wundert tut es mich<br />
(es reimt sich :xmas1:)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1185688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1185688</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Sat, 02 Dec 2006 10:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to Items in TreeView löschen on Sat, 02 Dec 2006 19:51:38 GMT]]></title><description><![CDATA[<p>Naja mir ist es auch nicht so klar, aber so funktionierts ja auch!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1185991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1185991</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Sat, 02 Dec 2006 19:51:38 GMT</pubDate></item></channel></rss>