![]() |
Adding 2007 themes |
Post Reply
|
| Author | |
garylyb
Newbie
Joined: 23 August 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: Adding 2007 themesPosted: 04 September 2006 at 11:20am |
|
Hello -
I'm trying to add 2007 themes to my application, I added the code from the StylerBrowser sample that switches between themes, and changed my frame declaration to:
class CMainFrame : public CXTPMDIFrameWnd, CXTPOffice2007FrameHookNow, when I call EnableOffice2007Frame(theme == xtpThemeRibbon || theme == xtpThemeOffice2007 ? GetCommandBars() : 0);
with either
xtpPaneThemeOffice2007 or xtpPaneThemeOffice2007 I get a fault here:
CSize CXTPOffice2007Image::GetExtent() const{ if (!m_hBitmap) return CSize(0, 0);...}
as m_hBitmap is never initialized.
I must be missing something, but I haven't been able to find it yet.
Thanks
Gary
|
|
![]() |
|
garylyb
Newbie
Joined: 23 August 2006 Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 September 2006 at 11:27am |
|
OK, I found it, had to copy the styles directory over to my debug directory
Gary
|
|
![]() |
|
Warren
Groupie
Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 November 2006 at 12:26pm |
|
I ran into this issue too, when I was trying to add the 2007 look to my app. What eventually solved it for me was to go to open the .rc2 file in my project, and inserting the line:
#include "Ribbon\Styles\Office2007Blue\Office2007Blue.rc" as the last line in the file (and rebuilding, of course). (Note: you also seem to have to derive your CMainFrame class from CXTPOffice2007FrameHook as well) Hopefully this helps someone... |
|
![]() |
|
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 |