Print Page | Close Window

Office2007 theme image won't load

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=16942
Printed Date: 28 April 2024 at 5:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Office2007 theme image won't load
Posted By: Bryancpe
Subject: Office2007 theme image won't load
Date Posted: 12 July 2010 at 6:39pm
Hi, I created a progress bar and I wish to apply the Office2007 theme to it. My implementation causes an error in the program.

My code:
m_wndProgressBar1.SetTheme(xtpControlThemeOffice2007);

I traced the error to this point:
CString CXTPOffice2007Images::_ImageNameToResourceName(CString strImageFile)
{
     CString strImage = GetImageString(_T("Images"), strImageFile);

strImageFile is "PROGRESSTRACK" but when it returns the strImage is "" <empty string>

My only guess is somehow the resource is not linked.

I tried the Control sample project and CPageProgressBar works just fine.

What do I need to do to get this to work?

Thanks for any help.



Replies:
Posted By: Oleg
Date Posted: 13 July 2010 at 1:33am
Did you add Office2007 resources ? See res\xxx.rc2 file in samples.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Bryancpe
Date Posted: 13 July 2010 at 9:41am
Thanks Oleg. I did not realize that I needed to add to my xxx.rc2 file the following line:
#include "Styles\Office2007Blue\Office2007Blue.rc"



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