Print Page | Close Window

How to advance Calendar week and month view?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=15913
Printed Date: 07 July 2024 at 9:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to advance Calendar week and month view?
Posted By: EricFowler
Subject: How to advance Calendar week and month view?
Date Posted: 23 December 2009 at 12:33am
Should be simple:
I have a calendar in week (or month) view, displaying a slab of days starting Dec. 21.

I want to advance to the next week (or month).

This looks to be easy in day view but is not working in week view:

{
          CXTPCalendarWeekView * pWeek = (CXTPCalendarWeekView *)m_ctrlCalendar.GetActiveView();
          COleDateTimeSpan span(7,0,0,0);
          COleDateTime beginDate = pWeek->GetBeginDate();
          pWeek->SetBeginDate(beginDate - span);
}

This does not work.

Day view has an easy function, can't find for week view.

Eric



Replies:
Posted By: mdoubson
Date Posted: 23 December 2009 at 10:58am
You can use CaptionBar Handlers (Next - Prev) which do desired advance - call it in your code if needed

-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net