<?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 : SOLVED: adding own icons to events</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : SOLVED: adding own icons to events]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 23:21:25 +0000</pubDate>
  <lastBuildDate>Thu, 07 Aug 2008 10:31:21 +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=11725</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[SOLVED: adding own icons to events : Yes it works :-)Thank you!  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11725&amp;PID=39565&amp;title=solved-adding-own-icons-to-events#39565</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=365">Alex H.</a><br /><strong>Subject:</strong> 11725<br /><strong>Posted:</strong> 07 August 2008 at 10:31am<br /><br />Yes it works :-)<br><br>Thank you!<br>]]>
   </description>
   <pubDate>Thu, 07 Aug 2008 10:31:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11725&amp;PID=39565&amp;title=solved-adding-own-icons-to-events#39565</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: adding own icons to events : At the first you have to add your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11725&amp;PID=39523&amp;title=solved-adding-own-icons-to-events#39523</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 11725<br /><strong>Posted:</strong> 06 August 2008 at 2:04pm<br /><br /><DIV>At the first you have to add your icons (with IDs)&nbsp;to the image list: CXTPCalendarTheme::GetCustomIconsList()</DIV><DIV>See example in CAdvancedCalendarOptionsDlg::OnOK() implementation.</DIV><DIV>&nbsp;</DIV><DIV>Then you have 2 ways to show custom icons:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; 1. Add ID(s) to event object and update event in data provider.</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ptrEvent-&gt;GetCustomIcons()-&gt;Add((UINT)IDI_MYICON);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ptrEvent-&gt;GetDataProvider()-&gt;ChangeEvent(ptrEvent);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pCalendar-&gt;Populate();</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; 2. Set icon ID&nbsp;in XTP_NC_CALENDAR_PREPOPULATE event handler. In this case you don't need ChangeEvent and Populate calls.</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ptrEvent-&gt;GetCustomIcons()-&gt;AddIfNeed((UINT)IDI_MYICON);</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; See example in CCalendarDemoView::OnEvent_PrePopulate.</DIV>]]>
   </description>
   <pubDate>Wed, 06 Aug 2008 14:04:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11725&amp;PID=39523&amp;title=solved-adding-own-icons-to-events#39523</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: adding own icons to events : How can i add and display my own...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11725&amp;PID=39457&amp;title=solved-adding-own-icons-to-events#39457</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=365">Alex H.</a><br /><strong>Subject:</strong> 11725<br /><strong>Posted:</strong> 05 August 2008 at 5:58am<br /><br />How can i add and display my own icons in events?<BR><BR>This line doesn't work<BR>ptrEvent-&gt;GetCustomIcons()-&gt;Add((UINT)IDI_MYICON);<BR><BR>Regards<BR>]]>
   </description>
   <pubDate>Tue, 05 Aug 2008 05:58:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11725&amp;PID=39457&amp;title=solved-adding-own-icons-to-events#39457</guid>
  </item> 
 </channel>
</rss>