<?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 : BUG (?): DragCopy event ID</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : BUG (?): DragCopy event ID]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 07:00:42 +0000</pubDate>
  <lastBuildDate>Sat, 07 Jul 2007 15:26:32 +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=7435</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[BUG (?): DragCopy event ID : Hi,The Calendar control uses AddEvent...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7435&amp;PID=24290&amp;title=bug-dragcopy-event-id#24290</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 7435<br /><strong>Posted:</strong> 07 July 2007 at 3:26pm<br /><br />Hi,<br><br>The Calendar control uses AddEvent method of data provider.<br>You can catch calendar notification XTP_NC_CALENDAREVENTWASADDED.<br>&nbsp;<br>Also to mark that event is coming from dragCopy operation, you can use event custom properties.<br>&nbsp;<br>I mean inside XTP_NC_CALENDAR_BEFORE_EVENT_EDIT_OPERATION notification handler set a custom property for new event, like: <br><br>&nbsp;&nbsp;&nbsp; COleVariant varOrigID = (long)pDraggingEventNew-&gt;GetEventID();<br>&nbsp;&nbsp;&nbsp; pDraggingEventNew-&gt;GetCustomProperties()-&gt;SetProperty("DragCopyEventIDorig",&nbsp; varOrigID);<br>&nbsp;<br>Inside XTP_NC_CALENDAREVENTWASADDED notification handler:<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; CXTPCalendarEvent* pEvent = (CXTPCalendarEvent*)lParam;<br>&nbsp;&nbsp;&nbsp; COleVariant varOrigID;<br><br>&nbsp;&nbsp;&nbsp; if (pEvent-&gt;-&gt;GetCustomProperties()-&gt;GetProperty("DragCopyEventIDorig",&nbsp; varOrigID))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // this event added by DragCopy operation.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DWORD dwNewID = pEvent-&gt;GetEventID();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // as example, remove this custom property and update event&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pEvent-&gt;GetCustomProperties()-&gt;RemoveProperty("DragCopyEventIDorig");<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VERIFY( pEvent-&gt;GetDataProvider()-&gt;ChangeEvent(pEvent) );<br>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp; <br><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 07 Jul 2007 15:26:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7435&amp;PID=24290&amp;title=bug-dragcopy-event-id#24290</guid>
  </item> 
  <item>
   <title><![CDATA[BUG (?): DragCopy event ID : Hi,Here is an interesting one:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7435&amp;PID=23898&amp;title=bug-dragcopy-event-id#23898</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3096">gniemcew</a><br /><strong>Subject:</strong> 7435<br /><strong>Posted:</strong> 23 June 2007 at 8:37am<br /><br />Hi,<br><br>Here is an interesting one: when handling drag and drop copy (Ctrl + drag) XTP_NC_CALENDAR_BEFORE_EVENT_EDIT_OPERATION::xtpCalendarEO_DragCopy notification, XTP_EVENT_DRAG_OPERATION_PARAMS member pDraggingEventNew contains the same event ID as the original pDraggingEvent. Effectively, there is no way to know what ID the newly created event will contain once the drag operation has been completed.<br><br>Anyone else run into this? Any ideas how to solve this one?<br><br>Thanks...<br><br>Gary<br><br>]]>
   </description>
   <pubDate>Sat, 23 Jun 2007 08:37:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7435&amp;PID=23898&amp;title=bug-dragcopy-event-id#23898</guid>
  </item> 
 </channel>
</rss>