Print Page | Close Window

Office 2007 Theme

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=16185
Printed Date: 13 May 2024 at 11:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office 2007 Theme
Posted By: smis
Subject: Office 2007 Theme
Date Posted: 12 February 2010 at 6:49pm
Hi
 
I am unable to set office 2007 Theme to my calendar control. I am using version 13.2. The Error message says to add

#include <Styles/Office2007Black/Office2007Black.rc>

to my project rc2 file. The problem is not gone even though I have done that. I am getting Assertion failure. I need to set  it to 2007 theme to change the background color of some of the cells of th calendar. The peice of code for doing it.
 

//Set the Theme To be 2007

CXTPCalendarThemeOffice2007* pTheme2007 = new CXTPCalendarThemeOffice2007();

if (pTheme2007)

{

pTheme2007->SetBeforeDrawFlags(xtpCalendarBeforeDraw_MonthViewDay);

}

m_CalCtrl.SetTheme(pTheme2007);

 
Thanks
Sudha



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