<?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 : event and recurrence dialogs</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : event and recurrence dialogs]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 05:07:04 +0000</pubDate>
  <lastBuildDate>Sat, 24 Mar 2007 17:43:55 +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=6687</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[event and recurrence dialogs : By implementation m_dtStartDate,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6687&amp;PID=21429&amp;title=event-and-recurrence-dialogs#21429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6687<br /><strong>Posted:</strong> 24 March 2007 at 5:43pm<br /><br />By implementation <b>m_dtStartDate</b>, <b>m_dtEndDate</b> contain time part also.<br>But not actual time from controls - it is initial time.<br>&nbsp;<br>The fix is the folowing (changed lines are <b>bold</b>). Thanks for your notes.<br><table width="99%"><tr><td><pre class="BBcode"><br>CXTPCalendarEventPropertiesDlg::OnBnClickedButtonRecurrecnce()<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .........................<br>&nbsp;<br><br>&nbsp; if (nRState == xtpCalendarRecurrenceNotRecurring)<br>&nbsp; {<br>&nbsp;&nbsp; VERIFY(ptrMasterEvent-&gt;MakeEventAsRecurrence());<br>&nbsp;&nbsp; bWasNotRecur = TRUE;<br>&nbsp;<br>&nbsp;&nbsp; CXTPCalendarRecurrencePatternPtr ptrPattern;<br>&nbsp;&nbsp; ptrPattern = ptrMasterEvent-&gt;GetRecurrencePattern();<br>&nbsp;<br><b>&nbsp;&nbsp; COleDateTime dtStartDateTime(CXTPCalendarUtils::UpdateTime(m_dtStartDate, m_dtStartTime));<br>&nbsp;&nbsp; COleDateTime dtEndDateTime(CXTPCalendarUtils::UpdateTime(m_dtEndDate, m_dtEndTime));<br>&nbsp;<br>&nbsp;&nbsp; COleDateTimeSpan spDuration = dtEndDateTime- dtStartDateTime;<br>&nbsp;<br>&nbsp;&nbsp; ptrPattern-&gt;SetStartTime(CXTPCalendarUtils::ResetDate(m_dtStartTime));<br></b>&nbsp;&nbsp; ptrPattern-&gt;SetDurationMinutes((int) spDuration.GetTotalMinutes());<br>&nbsp;<br>&nbsp;&nbsp; ptrPattern-&gt;SetPatternStartDate(CXTPCalendarUtils::ResetTime(m_dtStartDate));<br>&nbsp;<br>&nbsp;&nbsp; ptrMasterEvent-&gt;UpdateRecurrence(ptrPattern);<br>&nbsp; }<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge <br>]]>
   </description>
   <pubDate>Sat, 24 Mar 2007 17:43:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6687&amp;PID=21429&amp;title=event-and-recurrence-dialogs#21429</guid>
  </item> 
  <item>
   <title><![CDATA[event and recurrence dialogs : I&amp;#039;ve been using some of the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6687&amp;PID=21304&amp;title=event-and-recurrence-dialogs#21304</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 6687<br /><strong>Posted:</strong> 20 March 2007 at 7:44pm<br /><br />I've been using some of the code from the calendar event dialogs to build propertysheet pages, and ran across what appears to be a bug where values are prepared for the recurrence dialog:<br><br>"CXTPCalendarEventPropertiesDlg::OnBnClickedButtonRecurrecnce()<br><br> if (nRState != xtpCalendarRecurrenceMaster)<br>{<br>&nbsp;&nbsp;&nbsp; ....<br>&nbsp;&nbsp;&nbsp; if (nRState == xtpCalendarRecurrenceNotRecurring)<br>&nbsp;&nbsp;&nbsp; ...<br> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COleDateTimeSpan spDuration = m_dtEndDate - m_dtStartDate;<br>&nbsp;&nbsp;&nbsp; ...<br>}<br><br>Unless this has some other purpose that I haven't discovered yet, it would seem to me the correct code should be:<br><br> COleDateTimeSpan spDuration = m_dtEndTime - m_dtStartTime;<br><br>This makes the values in the recurrence dialog start and end time boxes coincide with those in the event dialog. (duration too). Or am I missing the intent of the code?<br><br>]]>
   </description>
   <pubDate>Tue, 20 Mar 2007 19:44:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6687&amp;PID=21304&amp;title=event-and-recurrence-dialogs#21304</guid>
  </item> 
 </channel>
</rss>