How to advance Calendar week and month view? |
Post Reply |
Author | |
EricFowler
Groupie Joined: 01 December 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
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 |
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
You can use CaptionBar Handlers (Next - Prev) which do desired advance - call it in your code if needed
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |