Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Loading Multiple Designer CommandBars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Loading Multiple Designer CommandBars

 Post Reply Post Reply
Author
Message
walgar View Drop Down
Newbie
Newbie


Joined: 13 February 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote walgar Quote  Post ReplyReply Direct Link To This Post Topic: Loading Multiple Designer CommandBars
    Posted: 13 February 2005 at 8:49am

Hi,

I have a small problem with loading of designer CommandBars.

I load designer CommandBars in my main form. Working Ok.

Then I open another form on which I load another designer CommandBars set.

At this point, I lose all the icons in the CommandBars of the main form...

When the mainform refreshes, all button are replaced with text.

 

Any help would be greatly appreciated... Thanks!

 

 

Back to Top
walgar View Drop Down
Newbie
Newbie


Joined: 13 February 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote walgar Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2005 at 11:50am

Ok, problem solved.

Although the two forms where using two different instances of CXTPCommandBars,

These two where using the same CXTPImageManager instance.

The CXTPCommandBars::LoadDesignerBars flushes the image manager before loading new images from the designer file.

I used CXTPCommandBars::SetImageManager to set a new image manager for the second form.

 

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.094 seconds.