<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : how to drag&amp;drop in dialog class ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : how to drag&amp;drop in dialog class ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 00:04:44 +0000</pubDate>
  <lastBuildDate>Tue, 07 Nov 2006 01:51:39 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=5439</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[how to drag&amp;drop in dialog class ? : Thank&amp;#039;s for the answer, but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5439&amp;PID=17082&amp;title=how-to-dragdrop-in-dialog-class#17082</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2487">rolf</a><br /><strong>Subject:</strong> 5439<br /><strong>Posted:</strong> 07 November 2006 at 1:51am<br /><br />Thank's for the answer, but this is still not working.<DIV>&nbsp;</DIV><DIV><FONT size=4><strong>Example - ReportSample :</strong></FONT></DIV><DIV>&nbsp;</DIV><DIV>a) adding it in CReportSampleView::OnCreate() ... everythings fine ... it is working ... i can drag&amp;drop ... having arrows on each side of the report and a small square near the mouse cursor</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20061107_013850_x.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV><DIV>&nbsp;</DIV><DIV>b) adding it in CTreeViewDlg::OnInitDialog() ... will not work ... if i'm trying to drag&amp;drop ... i have a small circle with a line :</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20061107_013959_y.JPG" border="0"></DIV><DIV>&nbsp;</DIV><DIV><FONT size=4><strong>Example - ReportDialog :</strong></FONT></DIV><DIV>&nbsp;</DIV><DIV>The source of CReportDialogDlg::OnInitDialog() allready contains this statement ... but (in my case) it is not working ... just the same as in CTreeViewDlg.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>In both dialog - cases the rows are not sorted and not grouped. And i only tried to move top level rows.</DIV><DIV>&nbsp;</DIV><DIV>I'm working with Toolkit Pro v10.20, compiler is MS VC 6.0, using static libs.</DIV><DIV>&nbsp;</DIV><DIV>I'll be&nbsp;happy about any idea how to get a step further ...</DIV><DIV>&nbsp;</DIV><DIV>Best regards, rolf</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 07 Nov 2006 01:51:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5439&amp;PID=17082&amp;title=how-to-dragdrop-in-dialog-class#17082</guid>
  </item> 
  <item>
   <title><![CDATA[how to drag&amp;drop in dialog class ? : Hi,I&amp;#039;ve just checked it and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5439&amp;PID=17074&amp;title=how-to-dragdrop-in-dialog-class#17074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5439<br /><strong>Posted:</strong> 06 November 2006 at 1:58pm<br /><br />Hi,<br><br>I've just checked it and it works fine.<br><br>Add<br>&nbsp;&nbsp;&nbsp; m_wndReport.EnableDragDrop(_T("TreeViewDlg"), xtpReportAllowDrop | xtpReportAllowDrag);<br>somewhere in <br>&nbsp;&nbsp;&nbsp; CTreeViewDlg::OnInitDialog()<br>and try.<br>&nbsp;<br>NOTE:<br>&nbsp; - Drag-drop movement does not move if rows sorted or groupped by some column.<br>&nbsp; - You cannot move child items, only top level rows.<br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 06 Nov 2006 13:58:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5439&amp;PID=17074&amp;title=how-to-dragdrop-in-dialog-class#17074</guid>
  </item> 
  <item>
   <title><![CDATA[how to drag&amp;drop in dialog class ? : What do i have to do, if i want...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5439&amp;PID=17062&amp;title=how-to-dragdrop-in-dialog-class#17062</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2487">rolf</a><br /><strong>Subject:</strong> 5439<br /><strong>Posted:</strong> 06 November 2006 at 8:44am<br /><br />What do i have to do, if i want to use drag &amp; drop&nbsp;in a&nbsp;CXTReportControl in a dialog derived class ?<DIV>&nbsp;</DIV><DIV>In&nbsp; the sample ReportSample we have the dialog "Report Control"-&gt;"Control Test"-&gt;"Tree View Dialog" .... what do i have to modify, if i want to drag a row into an other position ... let's say drag row&nbsp;4 by mouse (keeping left mouse button down) into position 2 (releasing left mouse button).</DIV><DIV>&nbsp;</DIV><DIV>Doing that in the CXTPReportView derived class is very simple :</DIV><DIV>&nbsp;</DIV><DIV><strong>wndReport.EnableDragDrop(_T("ReportSampleView"), xtpReportAllowDrag | xtpReportAllowDrop);</strong><DIV><strong>&nbsp;</strong></DIV><DIV>But in the dialog class this does no work !</DIV><DIV>&nbsp;</DIV><DIV>Anybody any idea how to make it ?</DIV></DIV>]]>
   </description>
   <pubDate>Mon, 06 Nov 2006 08:44:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5439&amp;PID=17062&amp;title=how-to-dragdrop-in-dialog-class#17062</guid>
  </item> 
 </channel>
</rss>