<?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 : Drag-n-Drop bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Drag-n-Drop bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 20:02:23 +0000</pubDate>
  <lastBuildDate>Mon, 31 Oct 2005 19:25:06 +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=3082</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[Drag-n-Drop bug : Thanks Larry, I did not realize...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9377&amp;title=dragndrop-bug#9377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 3082<br /><strong>Posted:</strong> 31 October 2005 at 7:25pm<br /><br /><P>Thanks Larry, I did not realize this is the MFC forum.&nbsp;:(</P><P>I was under the impression this feature would be in the ActiveX version a while ago, I was wondering if I had just missed it... still no luck in the ActiveX version, and apparently to get it to work in MFC you have to use a hack. The lack of drag and drop support is a pretty huge oversight imho.</P><P>Anyway, thanks for the reply.</P>]]>
   </description>
   <pubDate>Mon, 31 Oct 2005 19:25:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9377&amp;title=dragndrop-bug#9377</guid>
  </item> 
  <item>
   <title><![CDATA[Drag-n-Drop bug : If you have a view class derived...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9203&amp;title=dragndrop-bug#9203</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=945">larryp</a><br /><strong>Subject:</strong> 3082<br /><strong>Posted:</strong> 24 October 2005 at 8:50am<br /><br />If you have a view class derived from CXTPReportView, then the reportcontrol supports standard MFC drag-n-drop behavior.&nbsp; The reportcontrol will not perform the drag-n-drop for you but you get thestandard messages such that you can implement it in your view class.<br><br>You need to add the following routines in your view class:<br><br>&nbsp;&nbsp;&nbsp; virtual DROPEFFECT OnDragEnter(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point );<br>&nbsp;&nbsp;&nbsp; virtual DROPEFFECT OnDragOver(COleDataObject* pDataObject, DWORD dwKeyState, CPoint point );<br>&nbsp;&nbsp;&nbsp; virtual DROPEFFECT OnDropEx(COleDataObject*pDataObject, DROPEFFECT dropDefaultEffect, DROPEFFECT dropListEffect,CPoint point);<br>&nbsp;&nbsp;&nbsp; virtual void OnDragLeave();<br>&nbsp;&nbsp;&nbsp; afx_msg void OnReportBeginDrag(NMHDR * pNotifyStruct, LRESULT * result);<br><br>Also you need to add:<br>&nbsp;&nbsp;&nbsp; ON_NOTIFY(LVN_BEGINDRAG, XTP_ID_REPORT_CONTROL, OnReportBeginDrag)&nbsp;&nbsp;&nbsp; <br><br>Your code has to copy your records to the clipboard and paste them into your report control, but it can be done.<br><br>--Larry<br><br><br>]]>
   </description>
   <pubDate>Mon, 24 Oct 2005 08:50:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9203&amp;title=dragndrop-bug#9203</guid>
  </item> 
  <item>
   <title><![CDATA[Drag-n-Drop bug : I thought the Report Control didn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9189&amp;title=dragndrop-bug#9189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=756">gshawn</a><br /><strong>Subject:</strong> 3082<br /><strong>Posted:</strong> 22 October 2005 at 4:36pm<br /><br />I thought the Report Control didn't support drag and drop?]]>
   </description>
   <pubDate>Sat, 22 Oct 2005 16:36:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9189&amp;title=dragndrop-bug#9189</guid>
  </item> 
  <item>
   <title><![CDATA[Drag-n-Drop bug : Drag-n-Drop bug.  In the routine...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9187&amp;title=dragndrop-bug#9187</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=945">larryp</a><br /><strong>Subject:</strong> 3082<br /><strong>Posted:</strong> 22 October 2005 at 3:55pm<br /><br />Drag-n-Drop bug.<br><br>In the routine CXTPReportControl::OnMouseMove exists the following code:<br><br><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // If mouse moved some since down...</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (m_bPrepareDrag &amp;&amp; (labs (point.x - m_pointDrag.x) &gt; 3 ||</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; labs (<span style="color: rgb(255, 0, 0);">point.x - m_pointDrag.x</span>) &gt; 3))</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Prevent duplicate</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_bPrepareDrag = FALSE;</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Begin a drag operation</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; OnBeginDrag(m_pointDrag);</span><br style="color: rgb(0, 0, 255); font-weight: bold;"><span style="color: rgb(0, 0, 255); font-weight: bold;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;  }<br><br></span><span style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 0);">There are two identical checks for point.x - m_pointDrag.x.&nbsp; It seems that the second one should be point.y - m_pointDrag.y</span><br style="color: rgb(0, 0, 0);"><br style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 0);">This prevents rows from being dragged unless the mouse is moved horizontally greater than three.</span></span><span style="color: rgb(0, 0, 255); font-weight: bold;"><br style="color: rgb(0, 0, 0);"><br></span>]]>
   </description>
   <pubDate>Sat, 22 Oct 2005 15:55:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3082&amp;PID=9187&amp;title=dragndrop-bug#9187</guid>
  </item> 
 </channel>
</rss>