Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - How to Modify event when advised
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Modify event when advised

 Post Reply Post Reply
Author
Message
anyware View Drop Down
Newbie
Newbie
Avatar

Joined: 24 January 2008
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote anyware Quote  Post ReplyReply Direct Link To This Post Topic: How to Modify event when advised
    Posted: 12 February 2008 at 1:13pm
Hello,
 
Is it possible to completly suppress the management of "all day" or "multi day" events in the Calendar library, and then become able to display events whose duration is more than 24 hours (events that appear on from top to bottom of calendar in day view) ?
 
Regards.
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2008 at 4:57pm
You can "cheat" Calendar's UI by replacing logic in Data Provider's RetrieveDayEvents method. Override it for you custom data provider, call a parent's one, then iterate all event and adjust their datetime borders. For example, for multiday events set date only for today's begin and end of the day. For all day events you can reset this flag. And so on.

Hope you've caught what I'd like to say

--
WBR,
Serge
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.141 seconds.