<?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]How to alter the default date on view?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : [solved]How to alter the default date on view?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 30 May 2026 12:44:22 +0000</pubDate>
  <lastBuildDate>Thu, 17 Sep 2009 23:10:43 +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=15175</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]How to alter the default date on view? : Thank you for reminding, I have...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53169&amp;title=solvedhow-to-alter-the-default-date-on-view#53169</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5509">u8702656</a><br /><strong>Subject:</strong> 15175<br /><strong>Posted:</strong> 17 September 2009 at 11:10pm<br /><br />Thank you for reminding, I have solved my problem.<DIV>&nbsp;</DIV><DIV>I use Calendar on dialog base .</DIV><DIV>&nbsp;</DIV><DIV>The following is my&nbsp;OnInitDialog() code. </DIV><DIV>&nbsp;</DIV><DIV>..........................</DIV><DIV>m_ctrlCalendar.SetTheme(new CXTPCalendarThemeOffice2007());<BR>&nbsp;<BR>&nbsp;int nWWMask = xtpCalendarDayAllWeek;<BR>&nbsp;m_ctrlCalendar.SetWorkWeekMask(nWWMask);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;m_ctrlCalendar.SetWorkWeekMask(nWWMask);<BR>&nbsp;CXTPCalendarDayView* pDayView = DYNAMIC_DOWNCAST(CXTPCalendarDayView, m_ctrlCalendar.GetDayView());<BR>&nbsp;if (pDayView)<BR>&nbsp;{<BR>&nbsp;&nbsp;// show working days interval<BR>&nbsp;&nbsp;COleDateTime dtDayViewStart(2009,12,1,0,0,0);<BR>&nbsp;&nbsp;pDayView-&gt;ShowWorkingDays(dtDayViewStart);<BR>&nbsp;}&nbsp;</DIV><DIV>COleDateTimeSpan spHalfHour(0,0,30,0);</DIV><DIV>&nbsp;<BR>&nbsp;COleDateTime dtHour = (double)spHalfHour * (DWORD)0;<BR>&nbsp;COleDateTime dtEndHour = (double)spHalfHour * (DWORD)47;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<BR>&nbsp;m_ctrlCalendar.SetWorkDayStartTime(dtHour.GetHour(), dtHour.GetMinute(), 0); <BR>&nbsp;m_ctrlCalendar.SetWorkDayEndTime(dtEndHour.GetHour(),dtEndHour.GetMinute(),0);</DIV><DIV>...............................</DIV><DIV>&nbsp;</DIV><DIV>It is work.</DIV>]]>
   </description>
   <pubDate>Thu, 17 Sep 2009 23:10:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53169&amp;title=solvedhow-to-alter-the-default-date-on-view#53169</guid>
  </item> 
  <item>
   <title><![CDATA[[solved]How to alter the default date on view? : So for your case add another line:  ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53155&amp;title=solvedhow-to-alter-the-default-date-on-view#53155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15175<br /><strong>Posted:</strong> 17 September 2009 at 8:48am<br /><br />So for your case add another line:<DIV><FONT size=2><P><FONT color=#0000ff> </FONT></P><P>void<FONT size=2> CCalendarDemoView::OnInitialUpdate()&nbsp; { ............</P><P></FONT>GetCalendarCtrl().GetActiveView()-&gt;ShowDay(COleDateTime(2009,12,1,0,0,0));</P><P>OnCalendarViewWeek(); }</P><DIV>and you will have Week View with your date inside visible range</DIV></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 17 Sep 2009 08:48:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53155&amp;title=solvedhow-to-alter-the-default-date-on-view#53155</guid>
  </item> 
  <item>
   <title><![CDATA[[solved]How to alter the default date on view? : I use xtpCalendarWorkWeekView....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53138&amp;title=solvedhow-to-alter-the-default-date-on-view#53138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5509">u8702656</a><br /><strong>Subject:</strong> 15175<br /><strong>Posted:</strong> 16 September 2009 at 11:25pm<br /><br />I use xtpCalendarWorkWeekView. <DIV>&nbsp;</DIV><DIV>m_ctrlCalendar.GetActiveView()-&gt;ShowDay() is not work&nbsp;on WeekView mode.</DIV><DIV>&nbsp;</DIV><DIV>It will alter the display mode as DayView .</DIV>]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 23:25:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53138&amp;title=solvedhow-to-alter-the-default-date-on-view#53138</guid>
  </item> 
  <item>
   <title><![CDATA[[solved]How to alter the default date on view? : I don&amp;#039;t understand that default...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53103&amp;title=solvedhow-to-alter-the-default-date-on-view#53103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 15175<br /><strong>Posted:</strong> 16 September 2009 at 12:40pm<br /><br />I don't understand that default mean but if you want to use your own init screen date - use e.g.<DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CCalendarDemoView::OnInitialUpdate()&nbsp; { ............</P></FONT></DIV><DIV><FONT size=2><P>GetCalendarCtrl().GetActiveView()-&gt;ShowDay(COleDateTime(2009,12,1,0,0,0)); }</P></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 16 Sep 2009 12:40:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53103&amp;title=solvedhow-to-alter-the-default-date-on-view#53103</guid>
  </item> 
  <item>
   <title><![CDATA[[solved]How to alter the default date on view? : How to alter the default date...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53030&amp;title=solvedhow-to-alter-the-default-date-on-view#53030</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5509">u8702656</a><br /><strong>Subject:</strong> 15175<br /><strong>Posted:</strong> 15 September 2009 at 5:55am<br /><br />How to alter the default date on view? <DIV></DIV>Must use CXTPDatePickerControl ? <DIV>If it is true, how should I use it? </DIV>]]>
   </description>
   <pubDate>Tue, 15 Sep 2009 05:55:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15175&amp;PID=53030&amp;title=solvedhow-to-alter-the-default-date-on-view#53030</guid>
  </item> 
 </channel>
</rss>