Office2007 theme image won't load |
Post Reply |
Author | |
Bryancpe
Newbie Joined: 12 July 2010 Location: United States Status: Offline Points: 2 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Did you add Office2007 resources ? See res\xxx.rc2 file in samples.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Bryancpe
Newbie Joined: 12 July 2010 Location: United States Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Thanks Oleg. I did not realize that I needed to add to my xxx.rc2 file the following line:
#include "Styles\Office2007Blue\Office2007Blue.rc" |
|
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 |