<?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[Drag&amp;amp;Drop bei Treeitems]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein TreeViewControl mit vielen TreeItems und SubItems. Nun möchte ich Drag und Drop implenmentieren. Leider habe ich da so ein Problem.</p>
<p>Dragging mach man ja eigentlich so:</p>
<pre><code class="language-cpp">case TVN_BEGINDRAG:
			ImageList_BeginDrag(TreeView_CreateDragImage(reinterpret_cast&lt;LPNMTREEVIEW&gt;(LParam)-&gt;hdr.hwndFrom, reinterpret_cast&lt;LPNMTREEVIEW&gt;(LParam)-&gt;itemNew.hItem), 0, 0, 0); 

			SetCapture(GetParent(hTree)); 

			break;
</code></pre>
<p>Leider haben meine Treeviewitems keine Bilder. Nun, was soll ich machen. Die einzige Lösung wäre wohl, Screenshots von dem TreeviewItem zu machen, was gerade genutzt wird oder ChildStatics zu erstellen, die ich dann bewege.</p>
<p>Hat jemand eine Ahnung, was ich machen kann?</p>
<p>Danke,</p>
<p>Chrissi</p>
<p>[EDIT]Schönerer Titel <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> [/EDIT]</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/85319/drag-amp-drop-bei-treeitems</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:16:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/85319.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Sep 2004 18:00:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Tue, 07 Sep 2004 18:48:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein TreeViewControl mit vielen TreeItems und SubItems. Nun möchte ich Drag und Drop implenmentieren. Leider habe ich da so ein Problem.</p>
<p>Dragging mach man ja eigentlich so:</p>
<pre><code class="language-cpp">case TVN_BEGINDRAG:
			ImageList_BeginDrag(TreeView_CreateDragImage(reinterpret_cast&lt;LPNMTREEVIEW&gt;(LParam)-&gt;hdr.hwndFrom, reinterpret_cast&lt;LPNMTREEVIEW&gt;(LParam)-&gt;itemNew.hItem), 0, 0, 0); 

			SetCapture(GetParent(hTree)); 

			break;
</code></pre>
<p>Leider haben meine Treeviewitems keine Bilder. Nun, was soll ich machen. Die einzige Lösung wäre wohl, Screenshots von dem TreeviewItem zu machen, was gerade genutzt wird oder ChildStatics zu erstellen, die ich dann bewege.</p>
<p>Hat jemand eine Ahnung, was ich machen kann?</p>
<p>Danke,</p>
<p>Chrissi</p>
<p>[EDIT]Schönerer Titel <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> [/EDIT]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601874</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601874</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Tue, 07 Sep 2004 18:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Tue, 07 Sep 2004 20:03:52 GMT]]></title><description><![CDATA[<p>Erm...wenn du keine Bilder hast, wird doch nur der Text des Objekts transparent dargestellt? Wo ist genau dein Problem? Screenshots hören sich schonmal ganz böse an <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>Gruß,<br />
Kevin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601982</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601982</guid><dc:creator><![CDATA[Surkevin]]></dc:creator><pubDate>Tue, 07 Sep 2004 20:03:52 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Tue, 07 Sep 2004 20:30:13 GMT]]></title><description><![CDATA[<p>Bei mir wird gar nichts dar gestellt, und ich dachte, beim Drag&amp;Drop werden nur die Bilder, nicht der Text dargestellt. Oder irre ich mich da?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601994</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Tue, 07 Sep 2004 20:30:13 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Tue, 07 Sep 2004 20:32:13 GMT]]></title><description><![CDATA[<p>Da irrst du dich!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/601995</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/601995</guid><dc:creator><![CDATA[Surkevin]]></dc:creator><pubDate>Tue, 07 Sep 2004 20:32:13 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Thu, 09 Sep 2004 17:42:41 GMT]]></title><description><![CDATA[<p>Ich hab jetzt nocheinmal geguckt:</p>
<blockquote>
<p>If you create a tree-view control without an associated image list, you cannot use the TreeView_CreateDragImage macro to create the image to display during a drag operation. You must implement your own method of creating a drag cursor</p>
</blockquote>
<p>Da steht also, dass, wenn ich kein Bild habe, die Funktion TreeView_CreateDragImage fehl schlägt. Also, muss ich mir jetzt selbst eine Funktion zum erstellen eines Drag-Pictures machen. Aber, wie soll die aussehen? Ich habe echt keinen Plan, was ich jetzt machen soll!</p>
<p>Danke,</p>
<p>Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/603578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603578</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Thu, 09 Sep 2004 17:42:41 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Thu, 09 Sep 2004 17:51:39 GMT]]></title><description><![CDATA[<p>ne stimmt nicht, die CreateDragImage Funktion liefert (zu mindest bei mir) das Bild, welches du dann nur noch Zeichnen musst!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/603587</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603587</guid><dc:creator><![CDATA[Surkevin]]></dc:creator><pubDate>Thu, 09 Sep 2004 17:51:39 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Thu, 09 Sep 2004 19:33:22 GMT]]></title><description><![CDATA[<p>Ich weiß nicht, warum es be dir funktioniert und bei mir nicht.</p>
<p>Bist du dir denn wirklich sicher, dass dein Tree ein reiner Text-Tree ohne Bilder ist?</p>
<p>Naja,</p>
<p>könntest du mal bitte deine Methode zum erstellen des Trees und die WndProc der DragDrop-Messages senden. Vielleicht helfen diese mir weiter.</p>
<p>Danke,</p>
<p>Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/603650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603650</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Thu, 09 Sep 2004 19:33:22 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Thu, 09 Sep 2004 19:47:44 GMT]]></title><description><![CDATA[<p>Mein Tree hat Bilder, aber der Text wird mitkopiert, kann mir nicht vorstellen, dass die Bilder Pflicht sind!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/603667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603667</guid><dc:creator><![CDATA[Surkevin]]></dc:creator><pubDate>Thu, 09 Sep 2004 19:47:44 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Thu, 09 Sep 2004 19:52:37 GMT]]></title><description><![CDATA[<p>Google entweder mal nach Drag &amp; Drop und Tree Controls, da hatte ich damals eine perfekte Seite, oder guck dir das an:<br />
<a href="http://www.codeproject.com/treectrl/dragdroptree.asp" rel="nofollow">http://www.codeproject.com/treectrl/dragdroptree.asp</a><br />
Ich weiß, ist MFC, aber das Prinzip ist das Gleiche!</p>
<p>Gruß,<br />
Kevin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/603671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/603671</guid><dc:creator><![CDATA[Surkevin]]></dc:creator><pubDate>Thu, 09 Sep 2004 19:52:37 GMT</pubDate></item><item><title><![CDATA[Reply to Drag&amp;amp;Drop bei Treeitems on Mon, 13 Sep 2004 13:36:15 GMT]]></title><description><![CDATA[<p>Also, es ist doch so, wie ich es gesagt habe. TreeView_CreateDragImage funktioniert nur, wenn die Items Bilder haben.</p>
<p>Naja, ist jetzt auch egal, ich nehme jetzt einfach nur ganz kleine, transparente Dummy-Bilder, die keinem auffallen und jetzt Funktioniert auch mein Drag&amp;Drop.</p>
<p>Naja,</p>
<p>Danke,</p>
<p>Chrissi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/606061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/606061</guid><dc:creator><![CDATA[*chrissi]]></dc:creator><pubDate>Mon, 13 Sep 2004 13:36:15 GMT</pubDate></item></channel></rss>