Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Brett Cook
|
Dec 19, 2006 - 1:36 PM
|
Dear Tech Support,
I am using CExtCustomizeSite in my application. When I add a new menu item via the resource editor in developer studio, the new menu item does not show up until I delete the saved custom state in the registry.
Is there a way to get it to show up without having to delete the saved state in the registry?
Thanks, -Brett
|
|
Technical Support
|
Dec 21, 2006 - 11:12 AM
|
Your new commands are not present in the GUI state loaded from the registry and they are treated as though as they were removed from a toolbar by the user. The same is true for pop-up menus. You can simply reset your toolbars in the Customize dialog rather than remove the registry settings.
|
|
Brett Cook
|
Dec 21, 2006 - 12:47 PM
|
Is there a way to reset the toolbars/menus programmatically, rather than require the user to do this? If so, is there also a way to programmatically reset only certain items in a toolbar and/or menu?
Thanks
|
|
Technical Support
|
Dec 22, 2006 - 12:09 PM
|
To reset a particular customizable CExtToolControlBar window, you should invoke the CExtCustomizeSite::BarReset() method. There is no universal solution to reset a toolbar partially. Potentially the user can change the toolbar completely. The user can even completely remove all initial buttons from a toolbar and add some buttons from another toolbar. In general it is not possible to detect where new command buttons in a new version of your application should appear in a particular toolbar. So we would recommend you just to reset toolbars.
|
|