event and recurrence dialogs |
Post Reply |
Author | |
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
Posted: 20 March 2007 at 7:44pm |
I've been using some of the code from the calendar event dialogs to build propertysheet pages, and ran across what appears to be a bug where values are prepared for the recurrence dialog:
"CXTPCalendarEventPropertiesDlg::OnBnClickedButtonRecurrecnce() if (nRState != xtpCalendarRecurrenceMaster) { .... if (nRState == xtpCalendarRecurrenceNotRecurring) ... COleDateTimeSpan spDuration = m_dtEndDate - m_dtStartDate; ... } Unless this has some other purpose that I haven't discovered yet, it would seem to me the correct code should be: COleDateTimeSpan spDuration = m_dtEndTime - m_dtStartTime; This makes the values in the recurrence dialog start and end time boxes coincide with those in the event dialog. (duration too). Or am I missing the intent of the code? |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
By implementation m_dtStartDate, m_dtEndDate contain time part also.
But not actual time from controls - it is initial time. The fix is the folowing (changed lines are bold). Thanks for your notes.
-- WBR, Serge |
|
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 |