Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » CExtToolControlBar on CMDIChildWnd Collapse All
Subject Author Date
Simon DESEE Mar 1, 2007 - 11:53 AM

Dear support,

I used the MDI_InnerOuterBars sample to add a CExtToolControlBar on my CMDIChildWnd.

No errors at runtime, the view menu for this toolbar is checked, but the toolbar is not displayed !

I don’t use the state load function, this toolbar is always shown. No trace message on debug window.

The menu display correctly the associed bitmaps, the toolbar isnt present on the customize’s tolbar dialog.

Thanks for your help

Technical Support Mar 2, 2007 - 11:46 AM

The problem has nothing to do with the algorithm that loads the control bar state. The problem may be that the show/hide command does not correctly work when not all the control bars were created with unique identifiers. So please check this in your application (both in main frame and in child frames).

A toolbar in a child frame window can be customizable if the child frame is designed to be customizable. The child frame’s toolbar can be customizable in scope of the main frame window if you register it as being customizable. By default, the CExtCustomizeSite finds all toolbars in the main frame window only and registers them. You should override the CExtCustomizeSite::OnRegisterAdditionalToolBars() virtual method and register custom toolbars using the CExtCustomizeSite::OnRegisterToolBar() method. Please also note that when the state of all the additional toolbars are loaded (the code of CExtCustomizeSite), they should be created by that time. We can guess that your child frame window is a single specific child frame which exists statically and persistently and even cannot be closed by the user.