Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Calendar
  New Posts New Posts RSS Feed - Office 2007 Theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office 2007 Theme

 Post Reply Post Reply
Author
Message Reverse Sort Order
smis View Drop Down
Newbie
Newbie


Joined: 05 January 2007
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote smis Quote  Post ReplyReply Direct Link To This Post Topic: Office 2007 Theme
    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
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.109 seconds.