Print Page | Close Window

Save/Load BarsState question

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=923
Printed Date: 06 March 2025 at 8:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Save/Load BarsState question
Posted By: yoavo
Subject: Save/Load BarsState question
Date 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.

 




Replies:
Posted By: Oleg
Date 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



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