Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Backstage resources loaded in constructor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Backstage resources loaded in constructor

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Backstage resources loaded in constructor
    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++)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 29 March 2011 at 8:14am
Hi,

Just set it in your CWinApp before it create CMainFrame.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 668
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post 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 (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.