<?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 collection</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Event collection]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 31 May 2026 00:20:46 +0000</pubDate>
  <lastBuildDate>Sat, 12 May 2007 07:38:42 +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=6978</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 collection : Hi, Basing on a hierarchy of views...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6978&amp;PID=22798&amp;title=event-collection#22798</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 6978<br /><strong>Posted:</strong> 12 May 2007 at 7:38am<br /><br />Hi, <br><br>Basing on a hierarchy of views and events you can iterate them in a following way. I've just tried this method:<br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp;&nbsp;&nbsp; CString strEvents;<br>&nbsp;&nbsp;&nbsp; CXTPCalendarView* pView = GetCalendarCtrl().GetActiveView();<br>&nbsp;&nbsp;&nbsp; int nDays = pView-&gt;GetViewDayCount();<br>&nbsp;&nbsp;&nbsp; for (int nDay = 0; nDay &lt; nDays; nDay++)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCalendarViewDay* pViewDay = pView-&gt;GetViewDay_(nDay);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nGroupsCount = pViewDay-&gt;GetViewGroupsCount();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int g = 0; g &lt; nGroupsCount; g++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCalendarViewGroup* pViewGroup = pViewDay-&gt;GetViewGroup_(g);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int nECount = pViewGroup-&gt;GetViewEventsCount();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int j = 0; j &lt; nECount; j++)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCalendarViewEvent* pViewEvent = pViewGroup-&gt;GetViewEvent_(j);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPCalendarEvent* pEv = pViewEvent ? pViewEvent-&gt;GetEvent() : NULL;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pEv)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; strEvents += pEv-&gt;GetSubject() + _T("\n");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; AfxMessageBox(strEvents);<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Sat, 12 May 2007 07:38:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6978&amp;PID=22798&amp;title=event-collection#22798</guid>
  </item> 
  <item>
   <title><![CDATA[Event collection : Ok.. I&amp;#039;m assuming no one...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6978&amp;PID=22765&amp;title=event-collection#22765</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 6978<br /><strong>Posted:</strong> 10 May 2007 at 5:40pm<br /><br />Ok.. I'm assuming no one else knows what I'm talking about or if they do it's a trade secret&nbsp;<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"><br><br>Maybe if I rephrase the question: <br><br>Is there a way to traverse an XTPCalendarView's Calendar Events? <br><br>(Other than going directly to the database and grabbing the records)<br>]]>
   </description>
   <pubDate>Thu, 10 May 2007 17:40:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6978&amp;PID=22765&amp;title=event-collection#22765</guid>
  </item> 
  <item>
   <title><![CDATA[Event collection : I created an event filtering method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6978&amp;PID=22315&amp;title=event-collection#22315</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 6978<br /><strong>Posted:</strong> 25 April 2007 at 1:24pm<br /><br />I created an event filtering method so I can selectively display the events I want based on the criteria I set. The objective is to remove events that have been filtered from the display (while not removing them from the database).<br><br>All works well and I have a collection of eventID's from another table that I will use to filter from. The problem I have run into is that I'm not sure where to find the event collection that the calendar is actively using. Are these loaded from the database every time they are required (such as in "Populate")? <br><br>I tried chasing the data member m_arEvents around the code but haven't found an accessor to it so I'm not sure that's what I am looking for.<br><br>So my questions are:<br><br>1. Is there a collection of events, or event pointers that identify the currently used (displayed) event objects?<br><br>2. Is there an accessor to this collection from one of the classes? If so, I could use a nudge in the right direction as to finding it.<br><br>3. If there is no collection, then is it correct to assume the best approach would be to reload all the events from the database and filter them at that time?<br><br>Thank you for any assistance that anyone can provide.]]>
   </description>
   <pubDate>Wed, 25 Apr 2007 13:24:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6978&amp;PID=22315&amp;title=event-collection#22315</guid>
  </item> 
 </channel>
</rss>