Hi, I've added EVT_CLOSE for wxDialog and wxFrame (comitted in rev. 3821), I've also switched to
new wxToolBar instead of
wxFrame::CreateToolBar.
I still have to think about the change to new wxToolBar because it introducess one shortcoming.
Wx docs for wxFrame::CreateToolBar() say:
Under Pocket PC, you should always use this function for creating the toolbar to be managed by the frame, so that wxWidgets can use a combined menubar and toolbar. Where you manage your own toolbars, create a wxToolBar as usual.
So it may produce wxToolBar in some platform-specific manner, not always through creating wxToolBar. But I've looked into XRC source code and it creates toolbar using new, so probably this is the best solution for now.
But I still don't see how it could be used outside wxFrame (like in wxAUI). Curent implementation is limited to standard toolbars only and it creates toolbar just like it's done in CreateToolbar. I think that there may still be some problems when you want to use it exernally but I may be wrong
Regards
BYO