Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - switch to dayview with attached calendar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

switch to dayview with attached calendar

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


Joined: 08 March 2006
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sfn555 Quote  Post ReplyReply Direct Link To This Post Topic: switch to dayview with attached calendar
    Posted: 11 March 2006 at 2:55am
Hi,

When I use AttachToCalendar the Calendar switches to a view according
to the selection of the datepicker and vice versa.
Now I don't want the view to change when the user clicks on a
single day in the datepicker. Rather the calendar should stay in,
let's say, weekview just changing the displayed week.
Is there an easy way to accomplish this?

Thanks!
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: 11 March 2006 at 3:25am
Hi,

For accomplishing this you'll have to create your own CalendarController class with the modified logic. The easiest way would be to inherit your class from CXTPCalendarController and override a logic of event handler OnEvent_DatePicker() similar to how it is implemented in existing class.

Note that this solution is not for ActiveX version, which has AttachToCalendar method. No such solution available for ActiveX.

--
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.