<?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 : Get column title</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : Get column title]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 17:44:28 +0000</pubDate>
  <lastBuildDate>Fri, 18 Sep 2009 09:53:54 +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=15137</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[Get column title : You can use notification - e.g....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15137&amp;PID=53190&amp;title=get-column-title#53190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15137<br /><strong>Posted:</strong> 18 September 2009 at 9:53am<br /><br />You can use notification - e.g. <DIV>VB Calendar Sample notification handler:<BR>Private Sub CalendarControl_GetItemText(ByVal Params As XtremeCalendarControl.CalendarGetItemTextParams)<BR>.............................................................................................<BR>If Params.Item = xtpCalendarItemText_DayViewDayHeaderRight Or _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Params.Item = xtpCalendarItemText_WeekViewDayHeaderRight Or _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Params.Item = xtpCalendarItemText_MonthViewDayHeaderRight _<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Params.Text = Year(Params.ViewDay.Date) &amp; " -&nbsp;Your happy day"</DIV><DIV>.............................................................................................&nbsp;&nbsp;&nbsp; <BR>End Sub<BR><BR>you need to add subscription to notification in your Form load function call<BR><BR>CalendarControl.AskItemTextFlags.SetFlag xtpCalendarItemText_DayViewDayHeaderRight<BR></DIV><DIV>Samething you can use in MFC - </DIV><DIV><FONT size=2><P>CString CXTPCalendarDayViewDay::GetCaption() {</P><P>COleDateTime dt(m_dtDate);</P><P>SYSTEMTIME st;</P><P>GETASSYSTEMTIME_DT(dt, st);</P><P>CString strHeaderFormat = GetView() ? GetView()-&gt;GetDayHeaderFormat() : _T(</FONT><FONT color=#a31515 size=2>""</FONT><FONT size=2>);</P><P>CString strResult = CXTPCalendarUtils::GetDateFormat(&amp;st, strHeaderFormat);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (strHeaderFormat.Find(_T(</FONT><FONT color=#a31515 size=2>"%"</FONT><FONT size=2>)) &gt; -1) </FONT><FONT color=#008000 size=2>//C-format used</P></FONT><FONT size=2><P>strResult = dt.Format(strHeaderFormat);</P><P></FONT><FONT size=2>DWORD dwFlags = XTP_SAFE_GET2(GetView(), GetCalendarControl(), GetAskItemTextFlags(), 0);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (dwFlags &amp; xtpCalendarItemText_DayViewDayHeader)</P><P>{</P><P>XTP_CALENDAR_GETITEMTEXT_PARAMS objRequest;</P><P>::ZeroMemory(&amp;objRequest, </FONT><FONT color=#0000ff size=2>sizeof</FONT><FONT size=2>(objRequest));</P><P>objRequest.nItem = (</FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2>)xtpCalendarItemText_DayViewDayHeader;</P><P>objRequest.pstrText = &amp;strResult;</P><P>objRequest.pViewDay = </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>;</P><P>XTP_SAFE_CALL2(GetView(), GetCalendarControl(), SendNotificationAlways(</P><P>XTP_NC_CALENDAR_GETITEMTEXT, (WPARAM)&amp;objRequest, 0));</P><P>}</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> strResult;</P><P>}</P><DIV></DIV>Just use nofification XTP_NC_CALENDAR_GETITEMTEXT</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 18 Sep 2009 09:53:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15137&amp;PID=53190&amp;title=get-column-title#53190</guid>
  </item> 
  <item>
   <title><![CDATA[Get column title : You can use: GetCalendarCtrl().m_bFullDateMode...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15137&amp;PID=53002&amp;title=get-column-title#53002</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15137<br /><strong>Posted:</strong> 14 September 2009 at 6:40pm<br /><br /><P>You can use: <FONT size=2>GetCalendarCtrl().m_bFullDateMode = TRUE;</P><P>CXTPCalendarDayView* pDayView = DYNAMIC_DOWNCAST(CXTPCalendarDayView, GetCalendarCtrl().GetDayView() );</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pDayView) { pDayView-&gt;SetDayHeaderFormat(_T(</FONT><FONT color=#a31515 size=2>"Holiday %A, %B %d, %Y"</FONT><FONT size=2>)); } - but it give you custom title for DayView or multi-column week view and every day will be Holiday (!). May be in next version we will make something for&nbsp;special title string for different days</P><DIV></DIV><DIV>Still you can use any combination of date-related C-format (%a %b ...)</DIV><DIV>But this is static (same for all days) custom text</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 14 Sep 2009 18:40:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15137&amp;PID=53002&amp;title=get-column-title#53002</guid>
  </item> 
  <item>
   <title><![CDATA[Get column title : How can I set my own custom title...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15137&amp;PID=52872&amp;title=get-column-title#52872</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3776">gmail</a><br /><strong>Subject:</strong> 15137<br /><strong>Posted:</strong> 08 September 2009 at 6:55pm<br /><br />How can I set my own custom title name for e.g. first day in the week (i.e. on week view instead of 'Monday' I want to set 'Christmas')? Thanks for replying.]]>
   </description>
   <pubDate>Tue, 08 Sep 2009 18:55:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15137&amp;PID=52872&amp;title=get-column-title#52872</guid>
  </item> 
 </channel>
</rss>