Backstage resources loaded in constructor |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
Posted: 28 March 2011 at 9:15am |
Using backstage pages as in the RibbonSample sample, requires that the Office2007.rc must be included, even the Office2007.dll is loaded dynamically.
This is because the RibbonBackstageControls, themes and images are loaded in the constructors. It would be nice if these were loaded in the create methods, then the resource Office2007.rc could be removed. Alternatively (as I do now) you have to call new and delete on the backstage pages.
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Just set it in your CWinApp before it create CMainFrame.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
Yes, there is a number of ways to get it to work, - I mention one, you another.
But since you decided to just duplicate the resources in you sample to get it to work, I guess that the convenience of loading the resource dll's later won.
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
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 |