<?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 : Holydays</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Holydays]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 19:04:06 +0000</pubDate>
  <lastBuildDate>Wed, 08 Apr 2009 16:21: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=13925</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[Holydays : You can use BeforeDrawThemeObject...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13925&amp;PID=47693&amp;title=holydays#47693</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13925<br /><strong>Posted:</strong> 08 April 2009 at 4:21pm<br /><br />You can use <FONT size=2>BeforeDrawThemeObject notification and some code like this <DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2>void</FONT><FONT size=2> CCalendarDemoView::OnBeforeDrawThemeObject(XTP_NOTIFY_CODE Event, WPARAM wParam , LPARAM lParam)</DIV><DIV><P>{</P><P>ASSERT(Event == XTP_NC_CALENDAR_BEFORE_DRAW_THEMEOBJECT);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (Event != XTP_NC_CALENDAR_BEFORE_DRAW_THEMEOBJECT)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P></FONT></DIV><DIV><DIV></DIV><FONT size=2>CXTPCalendarThemeOffice2007* pTheme2007 = DYNAMIC_DOWNCAST(CXTPCalendarThemeOffice2007, GetCalendarCtrl().GetTheme());</DIV><P>ASSERT(pTheme2007);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!pTheme2007)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P></P><P></FONT><FONT color=#0000ff size=2>static</FONT><FONT size=2> CFont s_fntStriked;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (s_fntStriked.m_hObject == NULL)</P><P>{</P><P>LOGFONT lfIcon;</P><P>VERIFY(::SystemParametersInfo(SPI_GETICONTITLELOGFONT, </FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(lfIcon), &amp;lfIcon, 0));</P><P>lfIcon.lfWeight = FW_BOLD;</P><P>lfIcon.lfHeight = 80;</P><P>lfIcon.lfStrikeOut = 1;</P><P></P><P>s_fntStriked.CreateFontIndirect(&amp;lfIcon);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (wParam == xtpCalendarBeforeDraw_DayViewEvent)</P><P>{</P><P>CXTPCalendarDayViewEvent* pViewEvent = (CXTPCalendarDayViewEvent*)lParam;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pViewEvent &amp;&amp; pViewEvent-&gt;GetEvent()-&gt;GetSubject().Left(1) == _T(</FONT><FONT color=#a31515 size=2>"*"</FONT><FONT size=2>))</P><P>{</P><P></P><P>pTheme2007-&gt;GetDayViewPartX()-&gt;GetDayPartX()-&gt;GetGroupPartX()-&gt;GetSingleDayEventPartX()-&gt;m_fcsetNormal.fcsetSubject.fntFont.SetCustomValue(&amp;s_fntStriked);</P><P>pTheme2007-&gt;GetDayViewPartX()-&gt;GetDayPartX()-&gt;GetGroupPartX()-&gt;GetMultiDayEventPartX()-&gt;m_fcsetNormal.fcsetSubject.fntFont.SetCustomValue(&amp;s_fntStriked);</P><P>pTheme2007-&gt;GetDayViewPartX()-&gt;GetDayPartX()-&gt;GetGroupPartX()-&gt;GetSingleDayEventPartX()-&gt;m_fcsetSelected.fcsetSubject.fntFont.SetCustomValue(&amp;s_fntStriked);</P><P>pTheme2007-&gt;GetDayViewPartX()-&gt;GetDayPartX()-&gt;GetGroupPartX()-&gt;GetMultiDayEventPartX()-&gt;m_fcsetSelected.fcsetSubject.fntFont.SetCustomValue(&amp;s_fntStriked);</P><P>}</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (wParam == xtpCalendarBeforeDraw_MonthViewDay)</P><P>{</P><P>CXTPCalendarMonthViewDay* pDay = (CXTPCalendarMonthViewDay*)lParam;</P><P></P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pDay-&gt;GetDayDate().GetDayOfWeek() == 3)&nbsp; == make your weekend case!</P><P>{</P><P>pTheme2007-&gt;GetMonthViewPartX()-&gt;GetDayPartX()-&gt;m_clrBackgroundDark = RGB(196, 128, 128);</P><P>pTheme2007-&gt;GetMonthViewPartX()-&gt;GetDayPartX()-&gt;m_clrBackgroundLight = RGB(230, 128, 128);</P><P>pTheme2007-&gt;GetMonthViewPartX()-&gt;GetDayPartX()-&gt;m_clrBackgroundSelected = RGB(128, 228, 228);</P><P></FONT><FONT color=#008000 size=2>//pTheme2007-&gt;GetMonthViewPartX()-&gt;GetDayPartX()-&gt;GetHeaderPartX()-&gt;</P></FONT><FONT size=2><P>}</P><P>} </P></FONT></FONT>]]>
   </description>
   <pubDate>Wed, 08 Apr 2009 16:21:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13925&amp;PID=47693&amp;title=holydays#47693</guid>
  </item> 
  <item>
   <title><![CDATA[Holydays : All views change colors accordingly...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13925&amp;PID=47586&amp;title=holydays#47586</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=66">zaksoft</a><br /><strong>Subject:</strong> 13925<br /><strong>Posted:</strong> 05 April 2009 at 6:24am<br /><br />All views change colors accordingly to working days specs. But how can I tell that a specif date is to be considered not working even if the day a working day (ie Xmas or monday after Easter) ? It is possible also the opposite (in Italy shops are normally open the sunday before XMas) ?<DIV>&nbsp;</DIV><DIV>TIA.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 05 Apr 2009 06:24:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13925&amp;PID=47586&amp;title=holydays#47586</guid>
  </item> 
 </channel>
</rss>