Finished rewriting Menu & Toolbar code to remove dynamic children. As it turns out I ended up replacing all the toolbar and menu code.
Aa a result, performace of switch to the all view has gone from 0.27 to 0.08 seconds on my computer. This time improvement should apply to all view switching as well as start up.
The new code is much simpler to understand
It adds the ability to do dynamic menus, e.g. menus whose list of items change based on the files in a directory.
The new code is 512 lines -- half the size of the old code
It fixes various old bugs, i.e. the CPIA test skins no longer loose the menubar
It depends on changes I made to wxWidgets, e.g. exporting the ToolBarTool? and ToolBar? methods to access ToolBarTools?
I still have a few days of testing and some reviews to do before I check it in.