<?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 disable multiday event.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : How to disable multiday event.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:48:10 +0000</pubDate>
  <lastBuildDate>Thu, 20 Nov 2008 04:54:29 +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=12724</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 disable multiday event. : Got it!!!!!!!!!!!!!1  following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=43013&amp;title=how-to-disable-multiday-event#43013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2796">Makarand</a><br /><strong>Subject:</strong> 12724<br /><strong>Posted:</strong> 20 November 2008 at 4:54am<br /><br />Got it!!!!!!!!!!!!!1<br /><br />following code to handle the case  <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="middle"> <br /><br /><br />void CCalendar::OnEvent_BeforeEditAction(XTP_NOTIFY_CODE Event, <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WPARAM wParam, LPARAM lParam)<br />{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (XTP_NC_CALENDAR_BEFORE_EVENT_EDIT_OPERATION != Event) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(FALSE);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;XTP_EVENT_EDIT_OPERATION_PARAMS* pOPparams = (XTP_EVENT_EDIT_OPERATION_PARAMS*)wParam;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;BOOL* pbHandled = (BOOL*)lParam;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ASSERT(pbHandled && pOPparams);<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CXTPCalendarEvent* pEventNew = GetCalendarCtrl().GetActiveView()-&gt;GetDraggingEventNew();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(pEventNew)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;COleDateTime dtNew,dtOrig;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dtNew = pEventNew-&gt;GetStartTime();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//check start time<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dtOrig = GetCalendarCtrl().GetActiveView()-&gt;GetDraggingEventOrig()-&gt;GetStartTime(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dtNew = pEventNew-&gt;GetStartTime();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(dtNew.GetDay() != dtOrig.GetDay())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*pbHandled = TRUE;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//check end time<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dtOrig = GetCalendarCtrl().GetActiveView()-&gt;GetDraggingEventOrig()-&gt;GetEndTime(); <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dtNew = pEventNew-&gt;GetEndTime();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(dtNew.GetDay() != dtOrig.GetDay())<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*pbHandled = TRUE;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />}<br /><br /><br />]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 04:54:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=43013&amp;title=how-to-disable-multiday-event#43013</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable multiday event. : Thanks Prashant,  SetAllDayEvent(..)...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=42997&amp;title=how-to-disable-multiday-event#42997</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2796">Makarand</a><br /><strong>Subject:</strong> 12724<br /><strong>Posted:</strong> 20 November 2008 at 1:20am<br /><br />Thanks Prashant,<br /><br />SetAllDayEvent(..) member function is used to set the "All Day" flag for an event. which is only for single day.<br />I do not want to allow user to have a multiday event.<br />see the attached image for more detail.<br /><br /><img src="uploads/20081120_011949_MultidayProblem.JPG" border="0"><br /><br />-Mak]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 01:20:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=42997&amp;title=how-to-disable-multiday-event#42997</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable multiday event. : Hi Mak,Try adding following where...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=42994&amp;title=how-to-disable-multiday-event#42994</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 12724<br /><strong>Posted:</strong> 20 November 2008 at 12:44am<br /><br />Hi Mak,<br><br>Try adding following where you are creating an event<br><br>ptrEvent-&gt;SetAllDayEvent(FALSE);<br><br>I hope this will help you ;)<br>]]>
   </description>
   <pubDate>Thu, 20 Nov 2008 00:44:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=42994&amp;title=how-to-disable-multiday-event#42994</guid>
  </item> 
  <item>
   <title><![CDATA[How to disable multiday event. : Hi,  I do not want to allow user...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=42964&amp;title=how-to-disable-multiday-event#42964</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2796">Makarand</a><br /><strong>Subject:</strong> 12724<br /><strong>Posted:</strong> 19 November 2008 at 5:08am<br /><br />Hi,<br /><br />I do not want to allow user to have a multiday event (since my application doesnt support this feature)<br /><br />Can you tell me what is the way to disable adding a multiday event in calendar ?]]>
   </description>
   <pubDate>Wed, 19 Nov 2008 05:08:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12724&amp;PID=42964&amp;title=how-to-disable-multiday-event#42964</guid>
  </item> 
 </channel>
</rss>