Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - How to remove all resources ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to remove all resources ?

 Post Reply Post Reply
Author
Message
nebulon View Drop Down
Newbie
Newbie


Joined: 05 December 2007
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote nebulon Quote  Post ReplyReply Direct Link To This Post Topic: How to remove all resources ?
    Posted: 16 December 2007 at 9:06am
After adding some resources via CXTPCalendarResourcesManager, I tried to remove them all. But there is always one last ressource that stay without been able to deleted it. I tried your CalendarDemo sample and this problem is also present in your demo sample.

I tried:
          while(pSchedules->GetCount()>0)
            {
                pSchedules->RemoveSchedule(pSchedules->GetAt(0)->GetID());
            }
or
            while(m_pCalRCman->GetResourcesCount()>0)
            {
                m_pCalRCman->RemoveResource(0);
            }
or
        m_pCalRCman->RemoveAll();


then
            m_CalendarCtrl.Populate();
            m_CalendarCtrl.RedrawControl();



without possibility to delete the last ressource.

Any idea ?

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.137 seconds.