Print Page | Close Window

Menu - Restoring Default Layout

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=9423
Printed Date: 01 March 2025 at 12:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Menu - Restoring Default Layout
Posted By: Simon HB9DRV
Subject: Menu - Restoring Default Layout
Date Posted: 28 January 2008 at 6:40am
As I am developing my software I am adding more entries to my main menu. I do not let the user modify the menu.
 
After restoring settings with CXTPPropExchangeXMLNode / ExchangeLayout I want to make sure the menu shows my latest / current layout so I use:
 
((CXTPToolBar*)m_pMenuBar)->Reset(FALSE);
 
Does this make sense? What is the correct way to be sure that when using CXTPPropExchangeXMLNode and ExchangeLayout to restore docking pane and command bar layouts that I (somehow) always have my desired Menu bar design and layout?
 


-------------
Simon HB9DRV



Replies:
Posted By: Oleg
Date Posted: 28 January 2008 at 7:04am
Hi,
best way is just call
pMenuBar->EnableCustomization(FALSE);
and controls will not be stored in registry.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 28 January 2008 at 8:15am
Originally posted by oleg oleg wrote:

Hi,
best way is just call
pMenuBar->EnableCustomization(FALSE);
and controls will not be stored in registry.
 
Thanks, later it would be good to know how to remove components from a serialisation file, for example enumerate the sections etc.
 
I see that I can remove a section but I can't get a list of the sections.


-------------
Simon HB9DRV



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