![]() |
Problem with xtpThemeRibbon |
Post Reply ![]() |
Author | |
phil_the_lick ![]() Groupie ![]() Joined: 03 January 2008 Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() Posted: 03 January 2008 at 3:55am |
Hello,
Currently using the eval version of toolkit pro on VS2008 pro. My app can apply visual styles to all the components no problem except the ribbon style. It is causing a crash. Code to apply style: XTPPaintManager()->SetTheme(xtpThemeRibbon); EnableOffice2007Frame(GetCommandBars()); I've followed the ShortcutBar and panes samples that use this style as best as I can, so far as I can see everything is the same. My main frame is derived from CXTPOffice2007FrameHook. I've also tried activating this style both on window creation and on a command after everything is set up. Same result. The call stack on the break looks like this: mfc90ud.dll!_AfxModifyStyle(HWND_*hWnd=0x00080810, int nStyleOffset=-16, unsigned long dwRemove=12582912, unsigned long dwAdd=8388608, unsigned int nFlags=32) Line 99 (this is in wincore.cpp) mfc90ud.dll!CWnd::ModifyStyle(HWND_*hWnd=0x00080810, unsigned long dwRemove=12582912, unsigned long dwAdd==8388608, unsigned nFlags=32) Line 111 (also wincore.cpp) ToolkitProEval1122vc90UD.dll!00a47237() Then the line in my code that calls EnableOffice2007Frame() Any ideas? Cheers, Phil. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi, have you added ribbon bitmaps to resources ?
Add
#include "Styles\Office2007Blue\Office2007Blue.rc" |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
phil_the_lick ![]() Groupie ![]() Joined: 03 January 2008 Status: Offline Points: 18 |
![]() ![]() ![]() ![]() ![]() |
Yes, in the rc2 file.
I have also performed a side-by-side exe resource comparison in VS with my exe and the Shortcutbar sample. All the resources are there. Phil. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Need to debug to give solution :( Try to reproduce with new project geneated with wizard.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |