Print Page | Close Window

Change Event Colors

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=15781
Printed Date: 06 May 2024 at 3:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change Event Colors
Posted By: Joe_Cali
Subject: Change Event Colors
Date 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



Replies:
Posted By: mdoubson
Date Posted: 10 December 2009 at 1:30pm
Need to turn it ON:

m_Sink.Advise(ptrCalendarConn, XTP_NC_CALENDAR_BEFORE_DRAW_THEMEOBJECT, &CCalendarDemoView::OnBeforeDrawThemeObject);



-------------
Mark Doubson, Ph.D.


Posted By: Joe_Cali
Date Posted: 17 December 2009 at 2:14pm
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
 


Posted By: mdoubson
Date Posted: 17 December 2009 at 2:36pm
I works in CalendarDemo - where App View derived from CXTPCalendarControlView
For dialog need some modifications I guess


-------------
Mark Doubson, Ph.D.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net