Print Page | Close Window

Backstage resources loaded in constructor

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18133
Printed Date: 08 July 2024 at 1:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Backstage resources loaded in constructor
Posted By: cpede
Subject: Backstage resources loaded in constructor
Date 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 (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: Oleg
Date Posted: 29 March 2011 at 8:14am
Hi,

Just set it in your CWinApp before it create CMainFrame.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: cpede
Date Posted: 29 March 2011 at 8:24am
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 (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net