Change Event Colors |
Post Reply |
Author | |
Joe_Cali
Newbie Joined: 03 December 2009 Location: United States Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 04 December 2009 at 4:47pm |
I need to change a specific event to a different background color. Am using Office2007 theme, and trying to capture the XTP_NC_CALENDAR_BEFORE_DRAW_THEMEOBJECT event by calling OnBeforeDrawThemeObject, but this function is never hit. What am I missing.
Thanks
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
Need to turn it ON:
m_Sink.Advise(ptrCalendarConn, XTP_NC_CALENDAR_BEFORE_DRAW_THEMEOBJECT, &CCalendarDemoView::OnBeforeDrawThemeObject); |
|
Joe_Cali
Newbie Joined: 03 December 2009 Location: United States Status: Offline Points: 2 |
Post Options
Thanks(0)
|
I did have the following already in my code:
m_Sink.Advise(ptrCalendarConn, XTP_NC_CALENDAR_BEFORE_DRAW_THEMEOBJECT, &MCSchedulerDlg::OnBeforeDrawThemeObject);
And also the function
void MCSchedulerDlg::OnBeforeDrawThemeObject(XTP_NOTIFY_CODE Event, WPARAM wParam, LPARAM lParam) {... But the function is never hit
|
|
mdoubson
Senior Member Joined: 17 November 2008 Status: Offline Points: 1705 |
Post Options
Thanks(0)
|
I works in CalendarDemo - where App View derived from CXTPCalendarControlView
For dialog need some modifications I guess
|
|
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 |