Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Save/Load BarsState question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Save/Load BarsState question

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


Joined: 29 February 2004
Location: Israel
Status: Offline
Points: 140
Post Options Post Options   Thanks (0) Thanks(0)   Quote yoavo Quote  Post ReplyReply Direct Link To This Post Topic: Save/Load BarsState question
    Posted: 08 July 2004 at 8:31am

Hi,

In my application I create my toolbars dynamically (not from resources) using CXTPToolBar::SetButtons and CXTPImageManager::SetIcons. I also use customization and Load/Save the Toolbars state.

My problem is that if an item has been added or removed, I can not see the change (because the data in the registry tries to load the previous and wrong state of the toolbars).

I do not want to force my users to delete the data in the registry because they will loose all their customization.

How can I overcome this problem ?

thanks, Yoav.

 

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: 09 July 2004 at 1:02am

If you create items dynamically and use customization you need to call

pToolBar->GetControls()->CreateOriginalControls() after you create all items.

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