![]() |
Menu - Restoring Default Layout |
Post Reply ![]() |
Author | |
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
best way is just call
pMenuBar->EnableCustomization(FALSE);
and controls will not be stored in registry.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
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
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |