Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Office themes not working
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Office themes not working

 Post Reply Post Reply
Author
Message
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Topic: Office themes not working
    Posted: 07 June 2017 at 10:38am
I have am changing my application to use the Office2007.dll and Office2013.dll theme using the following code:

XTPThemeDLL()->SetHandle(xtpIniOffice2007Blue);
CXTPPaintManager::SetTheme(xtpThemeRibbon);

However when calling any code that needs resources, i.e. below, pImage is NULL

CXTPResourceImage* pImage = LoadImage(_T("WORKSPACETOPLEFT"));

Any ideas please?

Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2017 at 6:11am
I have am changing my application to use the Office2007.dll and Office2013.dll theme using the following code:

XTPThemeDLL()->SetHandle(xtpIniOffice2007Blue);
CXTPPaintManager::SetTheme(xtpThemeRibbon);

However when calling any code that internally to the SDK that needs resources, i.e. below, pImage is set to NULL as it fails to load the resource

CXTPResourceImage* pImage = LoadImage(_T("WORKSPACETOPLEFT"));

Any help much appreciated
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 867
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2017 at 11:30am
I seem to recall when we moved to newer office themes I found that some of the images I was using were not available in the newer theme. I was using some of the ribbon group images and I think CJ stopped using images and started drawing gradients or something like that.

Basically you can't rely on the same images to be in all themes.
Back to Top
terrym View Drop Down
Senior Member
Senior Member


Joined: 13 April 2007
Status: Offline
Points: 836
Post Options Post Options   Thanks (0) Thanks(0)   Quote terrym Quote  Post ReplyReply Direct Link To This Post Posted: 20 June 2017 at 11:33am
Thanks, much appreciated
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey
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.202 seconds.