How to retrieve calendar event props from click? |
Post Reply |
Author | |
EricFowler
Groupie Joined: 01 December 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 26 December 2009 at 2:33am |
I have a calendar in which I have created some events of type CXTPCalendarEventPtr, like this:
CXTPCalendarEventPtr pEvt = EventFromItemAtPoint(pItemDrop, point); if(pEvt) { CXTPCalendarData * pDP = GetDataProvider(); if(pDP) pDP->AddEvent(pEvt); } EventFromItemAtPoint() is mine. Now the user has selected an event and hit the ENTER key. I trap the message, and want to fight my way back to some custom properties I have stored with that event. The problem is retrieving the pointer for the event that the user has selected. I tried getting the active view, then a list of CXTPCalendarViewEvents, then one event. But the trail goes cold because I am looking at "view" events, not just events. I may not even be looking in the right place. Where can I find that lost event? I don't store IDs when I insert. Eric |
|
EricFowler
Groupie Joined: 01 December 2009 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
D'oh, figured this one out.
Get the CXTPCalendarViewEvent ptr and call GetEvent() on it. That returns what I need. Post left up for Google-food. Eric |
|
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 |