Office themes not working |
Post Reply |
Author | |
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
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 |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
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 |
|
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 891 |
Post Options
Thanks(0)
|
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. |
|
terrym
Senior Member Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
|
Thanks, much appreciated
|
|
Thank you,
Terry Mancey email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey |
|
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 |