Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Multiple designer bars in the same application
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple designer bars in the same application

 Post Reply Post Reply
Author
Message
Smucker View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 February 2008
Status: Offline
Points: 156
Post Options Post Options   Thanks (0) Thanks(0)   Quote Smucker Quote  Post ReplyReply Direct Link To This Post Topic: Multiple designer bars in the same application
    Posted: 07 February 2008 at 7:26pm
I have an application with multiple top-level windows; one main (browsing) window and multiple editing windows. When I call LoadDesignerBars() for an editing window (which uses a different frame class, and a different .xcb file from the resource), all of the icons for the main window are gone.

I've tracked it down to a call to CXTPImageManager::RemoveAll() in CXTPImageManager::DoPropExchange, which is called while loading the designer bars.

The bars are still there and the buttons in the main window continue to work, but naturally all of the icons are gone.

Do I need to somehow set up a second (or more robust) image manager, or can I just remove this call?

Am I likely to run into other issues with multiple designer bars in the same application?

Forgive me if I'm being dense -- I've only been using your product for a few days!

Product: Xtreme Toolkit Pro version 13.2 (Unicode, static build)

Platform: Windows 200x/XP/Vista/Win7 (32/64 bit)

Language: Visual C++ 9.0 (Studio 2008)

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: 08 February 2008 at 12:52am
Hi,
 
You need set isolated ImageManagers for both CommandBars:
pCommandBars->SetImageManager(new CXTPImageManager());
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.