How to switch from Multischedule to Day mode? |
Post Reply |
Author | |
AndreiM
Moderator Group Joined: 18 August 2007 Status: Offline Points: 132 |
Post Options
Thanks(0)
Posted: 06 August 2008 at 2:46pm |
Hi,
see answer here: https://forum.codejock.com/forum_posts.asp?TID=10157&PID=39525#39525
|
|
KumarCJ
Groupie Joined: 02 April 2007 Location: India Status: Offline Points: 96 |
Post Options
Thanks(0)
|
Hi,
I have one doubt, I implemented two modes 1) Multischedule and 2) Day
In multischedule mode I can see newly added scedules (Columns) but when I try to switch back to Day mode Columns remains as it is.
My question is
How to remove schedules while switching back to Day mode?
I tried following code but CAlendar cntrol is turning whole RED
Code:-
CXTPCalendarControl* pCalendarCtrl = &this->GetCalendarCtrl();
CXTPCalendarData * pData = pCalendarCtrl->GetDataProvider(); if (!pData)
return; pSchedules = pData->GetSchedules();
if (!pSchedules)
return; int iCnt = pCalendarCtrl->GetResources()->GetCount(); // Here I am getting proper column/schedule count (2)
for (int i = 0; i < iCnt; i++ )
{ pCalendarCtrl->GetResources()->RemoveAt(0);
} Thanks in advance.
|
|
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 |