Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - Office2007 theme image won't load
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedOffice2007 theme image won't load

 Post Reply Post Reply
Author
Message
Bryancpe View Drop Down
Newbie
Newbie
Avatar

Joined: 12 July 2010
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bryancpe Quote  Post ReplyReply Direct Link To This Post Topic: Office2007 theme image won't load
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Bryancpe View Drop Down
Newbie
Newbie
Avatar

Joined: 12 July 2010
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bryancpe Quote  Post ReplyReply Direct Link To This Post 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"
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.125 seconds.